1 #ifndef __bbSlicerCheckerBoardFilter_h_INCLUDED__
2 #define __bbSlicerCheckerBoardFilter_h_INCLUDED__
4 #include "bbSlicer_EXPORT.h"
5 #include "bbtkAtomicBlackBox.h"
14 #include <ModuleDescriptionUtilities.h>
15 #include <ModuleDescriptionParser.h>
16 #include <ModuleParameterGroup.h>
17 #include <ModuleDescription.h>
18 #include <ModuleParameter.h>
20 #include "CreationTool.h"
24 class bbSlicer_EXPORT CheckerBoardFilter
26 public bbtk::AtomicBlackBox {
27 BBTK_BLACK_BOX_INTERFACE ( CheckerBoardFilter , bbtk::AtomicBlackBox ) ;
31 BBTK_DECLARE_INPUT ( checkerPattern , std::vector<int> );
32 BBTK_DECLARE_INPUT ( inputVolume1 , std::string );
33 BBTK_DECLARE_INPUT ( inputVolume2 , std::string );
34 BBTK_DECLARE_INPUT ( outputVolume , std::string );
38 BBTK_PROCESS ( Process ) ;
41 void execute ( std::string lib , int _argc , char * _argv[] ) ;
44 BBTK_BEGIN_DESCRIBE_BLACK_BOX ( CheckerBoardFilter , bbtk::AtomicBlackBox ) ;
45 BBTK_NAME ( "CheckerBoardFilter" ) ;
46 BBTK_AUTHOR ( "Bill Lorensen" ) ;
47 BBTK_DESCRIPTION ( "Create a checkerboard volume of two volumes. The output volume will show the two inputs alternating according to the user supplied checkerPattern. This filter is often used to compare the results of image registration. Note that the second input is resampled to the same origin, spacing and direction before it is composed with the first input. The scalar type of the output volume will be the same as the input image scalar type." ) ;
48 BBTK_CATEGORY ( "Filtering" ) ;
50 // GENERATED DESCRPTION
52 BBTK_INPUT(CheckerBoardFilter , checkerPattern , "checkerPattern" , std::vector<int>, "");
53 BBTK_INPUT(CheckerBoardFilter , inputVolume1 , "inputVolume1" , std::string, "");
54 BBTK_INPUT(CheckerBoardFilter , inputVolume2 , "inputVolume2" , std::string, "");
55 BBTK_INPUT(CheckerBoardFilter , outputVolume , "outputVolume" , std::string, "");
57 // EO GENERATED DESCRIPTION
59 BBTK_END_DESCRIBE_BLACK_BOX ( CheckerBoardFilter ) ;
62 #endif // __bbSlicerCheckerBoardFilter_h_INCLUDED__