]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/src/bbPackRecalageCheckBoardBox.cxx
*** empty log message ***
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageCheckBoardBox.cxx
1 #include "bbPackRecalageCheckBoardBox.h"
2 #include "bbPackRecalagePackage.h"
3
4 namespace bbPackRecalage
5 {
6
7 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,CheckBoardBox)
8 BBTK_BLACK_BOX_IMPLEMENTATION(CheckBoardBox,bbtk::AtomicBlackBox);
9 void CheckBoardBox::Process()
10 {
11  
12 // THE MAIN PROCESSING METHOD BODY 
13         checkboard->setInputImage1(bbGetInputIn1());
14         checkboard->setInputImage2(bbGetInputIn2());
15         checkboard->setRows(bbGetInputRows());
16         checkboard->setCols(bbGetInputCols());
17         checkboard->calculateImage();
18         bbSetOutputOut(checkboard->getFilteredImage());
19         //bbSetOutputOut(bbGetInputIn1());
20   
21 }
22 void CheckBoardBox::bbUserSetDefaultValues()
23 {
24  
25 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX  
26 //    Here we initialize the input 'In' to 0 
27    bbSetInputIn1(NULL); 
28    bbSetInputIn2(NULL); 
29    bbSetInputRows(0); 
30    bbSetInputCols(0);
31    checkboard=NULL;
32   
33 }
34 void CheckBoardBox::bbUserInitializeProcessing()
35 {
36 //  THE INITIALIZATION METHOD BODY : 
37 //    Here does nothing  
38 //    but this is where you should allocate the internal/output pointers  
39 //    if any 
40         checkboard = new CheckBoard();
41   
42 }
43 void CheckBoardBox::bbUserFinalizeProcessing()
44 {
45         
46 //  THE FINALIZATION METHOD BODY : 
47 //    Here does nothing  
48 //    but this is where you should desallocate the internal/output pointers  
49 //    if any 
50    //delete checkboard; 
51 }
52 }
53 // EO namespace bbPackVisuImages
54
55