#include "bbPackRecalageCheckBoardBox.h" #include "bbPackRecalagePackage.h" namespace bbPackRecalage { BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,CheckBoardBox) BBTK_BLACK_BOX_IMPLEMENTATION(CheckBoardBox,bbtk::AtomicBlackBox); void CheckBoardBox::Process() { // THE MAIN PROCESSING METHOD BODY checkboard->setInputImage1(bbGetInputIn1()); checkboard->setInputImage2(bbGetInputIn2()); checkboard->setRows(bbGetInputRows()); checkboard->setCols(bbGetInputCols()); checkboard->calculateImage(); bbSetOutputOut(checkboard->getFilteredImage()); } void CheckBoardBox::bbUserSetDefaultValues() { // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 bbSetInputIn1(NULL); bbSetInputIn2(NULL); bbSetInputRows(0); bbSetInputCols(0); checkboard=NULL; } void CheckBoardBox::bbUserInitializeProcessing() { // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers // if any checkboard = new CheckBoard(); } void CheckBoardBox::bbUserFinalizeProcessing() { // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any //delete checkboard; } } // EO namespace bbPackVisuImages