// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- if (bbGetInputIn()!=NULL)
+ if ((bbGetInputActive()==true) && (bbGetInputIn()!=NULL) )
{
if (gaussiansmooth!=NULL)
{
} else {
bbSetOutputOut(NULL);
}
-
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void ImageGaussianSmooth2::bbUserSetDefaultValues()
{
-
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
gaussiansmooth=NULL;
+ bbSetInputActive(true);
bbSetInputIn(NULL);
bbSetInputStdDevX(2);
bbSetInputStdDevY(2);
bbSetInputStdDevZ(2);
-
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void ImageGaussianSmooth2::bbUserInitializeProcessing()
{
-
// THE INITIALIZATION METHOD BODY :
// Here does nothing
// but this is where you should allocate the internal/output pointers
-// if any
-
-
+// if any
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void ImageGaussianSmooth2::bbUserFinalizeProcessing()
{
-
// THE FINALIZATION METHOD BODY :
// Here does nothing
// but this is where you should desallocate the internal/output pointers
// if any
-
-}
}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
+ BBTK_DECLARE_INPUT(Active,bool);
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_INPUT(StdDevX,double);
BBTK_DECLARE_INPUT(StdDevY,double);
BBTK_DESCRIPTION("No Description.");
BBTK_CATEGORY("empty");
+ BBTK_INPUT(ImageGaussianSmooth2,Active,"(default true) true/false",bool,"");
BBTK_INPUT(ImageGaussianSmooth2,In,"First input",vtkImageData*,"");
BBTK_INPUT(ImageGaussianSmooth2,StdDevX,"(default 2) Standard deviation in direction X",double,"");
BBTK_INPUT(ImageGaussianSmooth2,StdDevY,"(default 2) Standard deviation in direction Y",double,"");
// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- if (filter!=NULL)
- {
- filter->Delete();
- filter=NULL;
- } // if
- filter = vtkImageThreshold::New();
-
- if (bbGetInputIn()!=NULL)
+ if ((bbGetInputActive()==true) && (bbGetInputIn()!=NULL) )
{
+ if (filter!=NULL)
+ {
+ filter->Delete();
+ filter=NULL;
+ } // if
+ filter = vtkImageThreshold::New();
filter->SetInValue( bbGetInputInValue() );
filter->SetOutValue( bbGetInputOutValue() );
filter->SetInputData( bbGetInputIn() );
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
filter=NULL;
+ bbSetInputActive(true);
bbSetInputIn(NULL);
bbSetInputLower(0);
bbSetInputUpper(10000);
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
+ BBTK_DECLARE_INPUT(Active,bool);
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_INPUT(Lower,double);
BBTK_DECLARE_INPUT(Upper,double);
BBTK_PROCESS(Process);
void Process();
- vtkImageThreshold *filter;
+ vtkImageThreshold *filter;
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
BBTK_AUTHOR("InfoDev");
BBTK_DESCRIPTION("No Description.");
BBTK_CATEGORY("empty");
+BBTK_INPUT(ImageThreshold,Active,"(default true) true/false",bool,"");
BBTK_INPUT(ImageThreshold,In,"Input image",vtkImageData*,"");
BBTK_INPUT(ImageThreshold,Lower,"(default 0) Lower threshold",double,"");
BBTK_INPUT(ImageThreshold,Upper,"(default 10000) Upper threshold",double,"");
bbSetOutputOut( NULL);
}// if In NULL
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void PolyDataToImageData::bbUserSetDefaultValues()
bbSetInputInImage(NULL);
bbSetInputBackgroundValue(255);
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void PolyDataToImageData::bbUserInitializeProcessing()
extract = NULL;
stencil = NULL;
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void PolyDataToImageData::bbUserFinalizeProcessing()
{
-
// THE FINALIZATION METHOD BODY :
// Here does nothing
// but this is where you should desallocate the internal/output pointers
// if any
-
}
-}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
# e.g.
# ../mySampleLib
+
+/Users/davila/Borrame/borrame/nn/teemInstall/include
+
)
#----------------------------------------------------------------------------