1 #include "bbPackRecalageImageRecalageProperties.h"
2 #include "bbPackRecalagePackage.h"
3 namespace bbPackRecalage
6 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,ImageRecalageProperties)
7 BBTK_BLACK_BOX_IMPLEMENTATION(ImageRecalageProperties,bbtk::AtomicBlackBox);
8 void ImageRecalageProperties::Process()
10 image = bbGetInputIn();
13 bbSetOutputLengthZ((int)image->GetDimensions()[2] - 1);
14 if(image->GetScalarType() == VTK_DOUBLE)
16 bbSetOutputColorLevel(50);
17 bbSetOutputMidColorLevel(25);
19 else if(image->GetScalarType() == VTK_UNSIGNED_SHORT)
21 bbSetOutputColorLevel(25000);
22 bbSetOutputMidColorLevel(12500);
26 bbSetOutputColorLevel(500);
27 bbSetOutputMidColorLevel(250);
31 void ImageRecalageProperties::bbUserSetDefaultValues()
36 void ImageRecalageProperties::bbUserInitializeProcessing()
39 // THE INITIALIZATION METHOD BODY :
41 // but this is where you should allocate the internal/output pointers
46 void ImageRecalageProperties::bbUserFinalizeProcessing()
51 // EO namespace bbPackRecalage