BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageVtkProperties,bbtk::AtomicBlackBox);
BBTK_NAME("ImageVtkProperties");
BBTK_AUTHOR("Info-Dev Creatis");
- BBTK_DESCRIPTION("Image information Dim, Spc, Type, MinMax");
+ BBTK_DESCRIPTION("(C++,Python) Image information Dim, Spc, Type, MinMax");
BBTK_CATEGORY("filter");
BBTK_INPUT(ImageVtkProperties,In,"Input image (vtk)",vtkImageData*,"");
BBTK_OUTPUT(ImageVtkProperties,Origin,"Origin", std::vector<double> ,"");
// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- double range[2];
- double spc[3];
- int ext[6];
- double A=bbGetInputA();
- double B=bbGetInputB();
+ double range[2];
+ double spc[3];
+ int ext[6];
+ double A=bbGetInputA();
+ double B=bbGetInputB();
if (bbGetInputIn()!=0)
{
mchange->SetExtentTranslation( -ext[0], -ext[2], -ext[4] );
mchange->SetOutputSpacing (spc);
- filter1->Update(); //important
- filter2->Update(); //important
- mchange->Update(); //important
+ filter1->Update(); // important
+ filter2->Update(); // important
+ mchange->Update(); // important
bbSetOutputOut( mchange->GetOutput() );
} else {
bbSetOutputOut( NULL );
};
BBTK_BEGIN_DESCRIBE_BLACK_BOX(RescaleSlopeIntercept,bbtk::AtomicBlackBox);
-BBTK_NAME("RescaleSlopeIntercept");
-BBTK_AUTHOR("eduardo.davila at creatis.insa-lyon.fr");
-BBTK_DESCRIPTION("Rescale Slope Intercept (see Type input descriptio)");
-BBTK_CATEGORY("filter");
-BBTK_INPUT(RescaleSlopeIntercept,In,"Image input",vtkImageData*,"");
-BBTK_INPUT(RescaleSlopeIntercept,Type,"type of operation: 0 (default) SlopeIntercept np=p*A+B, 1 Invert, 2 Redimension A=newMin B=newMax, 3 InvertRedimension A=newMin B=newMax",int,"");
-BBTK_INPUT(RescaleSlopeIntercept,A,"(1 default) see Type description",double,"");
-BBTK_INPUT(RescaleSlopeIntercept,B,"(0 default) see Type description",double,"");
-BBTK_INPUT(RescaleSlopeIntercept,OutputFormat,"Image output format: SAME (default), VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE",std::string,"");
-BBTK_OUTPUT(RescaleSlopeIntercept,Out,"Image output",vtkImageData*,"");
+ BBTK_NAME("RescaleSlopeIntercept");
+ BBTK_AUTHOR("eduardo.davila at creatis.insa-lyon.fr");
+ BBTK_DESCRIPTION("(C++,Python)Rescale Slope Intercept (see Type input descriptio)");
+ BBTK_CATEGORY("filter");
+ BBTK_INPUT(RescaleSlopeIntercept,In,"Image input",vtkImageData*,"");
+ BBTK_INPUT(RescaleSlopeIntercept,Type,"type of operation: 0 (default) SlopeIntercept np=p*A+B, 1 Invert, 2 Redimension A=newMin B=newMax, 3 InvertRedimension A=newMin B=newMax",int,"");
+ BBTK_INPUT(RescaleSlopeIntercept,A,"(1 default) see Type description",double,"");
+ BBTK_INPUT(RescaleSlopeIntercept,B,"(0 default) see Type description",double,"");
+ BBTK_INPUT(RescaleSlopeIntercept,OutputFormat,"Image output format: SAME (default), VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE",std::string,"");
+ BBTK_OUTPUT(RescaleSlopeIntercept,Out,"Image output",vtkImageData*,"");
BBTK_END_DESCRIBE_BLACK_BOX(RescaleSlopeIntercept);
//=====
// Don't edit this file. This file is generated from xml description..