#include <bbitkImageRegion.h>
Private Member Functions | |
BBTK_BLACK_BOX_INTERFACE (ImageRegionCreator, bbtk::AtomicBlackBox) | |
BBTK_DECLARE_INPUT (Index, std::vector< long >) | |
BBTK_DECLARE_INPUT (Size, std::vector< long >) | |
BBTK_DECLARE_OUTPUT (Out, anyImageRegion) | |
BBTK_PROCESS (DoIt) | |
void | DoIt () |
template<unsigned int Dimension> | |
void | DoIt () |
Definition at line 77 of file bbitkImageRegion.h.
bbitk::ImageRegionCreator::BBTK_BLACK_BOX_INTERFACE | ( | ImageRegionCreator | , | |
bbtk::AtomicBlackBox | ||||
) | [private] |
bbitk::ImageRegionCreator::BBTK_DECLARE_INPUT | ( | Index | , | |
std::vector< long > | ||||
) | [private] |
bbitk::ImageRegionCreator::BBTK_DECLARE_INPUT | ( | Size | , | |
std::vector< long > | ||||
) | [private] |
bbitk::ImageRegionCreator::BBTK_DECLARE_OUTPUT | ( | Out | , | |
anyImageRegion | ||||
) | [private] |
bbitk::ImageRegionCreator::BBTK_PROCESS | ( | DoIt | ) | [private] |
void bbitk::ImageRegionCreator::DoIt | ( | ) | [inline, private] |
Definition at line 46 of file bbitkImageRegion.cxx.
00047 { 00048 const std::vector<long>& index = bbGetInputIndex(); 00049 const std::vector<long>& size = bbGetInputSize(); 00050 // std::cout<< "isize="<<index.size()<<std::endl; 00051 // std::cout<< "ssize="<<size.size()<<std::endl; 00052 unsigned long maxs = index.size() > size.size() ? index.size() : size.size(); 00053 switch (maxs) 00054 { 00055 case 2 : DoIt<2>(); break; 00056 case 3 : DoIt<3>(); break; 00057 case 4 : DoIt<4>(); break; 00058 default : bbtkError("ImageRegionCreator : cannot build a region of dimension "<<maxs); 00059 } 00060 00061 00062 }
void bbitk::ImageRegionCreator::DoIt | ( | ) | [inline, private] |