#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()); if(bbGetInputIn1() != NULL && bbGetInputIn2() != NULL) { checkboard->setRows(bbGetInputRows()); checkboard->setCols(bbGetInputCols()); checkboard->calculateImage(); bbSetOutputOut(checkboard->getFilteredImage()); } else { bbSetOutputOut(NULL); } } void CheckBoardBox::bbUserSetDefaultValues() { 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