bbtk::AtomicBlackBox);
BBTK_ADD_BLACK_BOX_TO_PACKAGE(itk,
BinaryThresholdImageFilterGeneric);
-
-
+
void BinaryThresholdImageFilterGeneric::bbUserSetDefaultValues()
{
bbSetInputLowerThreshold(0);
bbSetInputInsideValue(255);
bbSetInputOutsideValue(0);
}
+
void BinaryThresholdImageFilterGeneric::bbUserInitializeProcessing()
{
}
+
void BinaryThresholdImageFilterGeneric::bbUserFinalizeProcessing()
{
}
-}
-
-// EO namespace bbtk
+} // EO namespace bbitk
#endif //_USE_ITK_
<<bbtk::TypeName<T>()<<">()"<<std::endl);
typedef BinaryThresholdImageFilter<T> FilterType;
- typename FilterType::Pointer f
-
- = FilterType::New("Temp");
-
-/*
+ typename FilterType::Pointer f = FilterType::New("Temp");
typedef T* TPointer;
f->bbSetInputIn( this->bbGetInputIn().get < TPointer > () );
f->bbSetInputLowerThreshold ( (typename T::PixelType)this->bbGetInputLowerThreshold() );
f->bbExecute();
f->bbGetOutputOut()->Register();
this->bbSetOutputOut( f->bbGetOutputOut() );
-*/
bbtkDebugDecTab("Core",9);
}
#include "bbitkvtkPackage.h"
#include "itkImageToVTKImageFilter.h"
+
+
+/*
+#EED 2017-08-29 itk3toitk4
+#define BBITKVTK_itkImage2vtkImageData_Template( t, ty, di ) \
+ if( t == typeid( itk::Image< ty, di > ) ) \
+ this->Convert< itk::Image< ty, di > >( )
+*/
+
// -------------------------------------------------------------------------
// LFV: avoid itk::Concept check on 4d or superior images
#define BBITKVTK_itkImage2vtkImageData_Template( t, ty, di ) \
- if( t == typeid( itk::Image< ty, di > ) ) \
+ if( t == typeid( itk::Image< ty, di >* ) ) \
this->Convert< itk::Image< ty, di > >( )
// -------------------------------------------------------------------------
else BBITKVTK_itkImage2vtkImageData_Template( t, unsigned short, 3 );
else BBITKVTK_itkImage2vtkImageData_Template( t, unsigned int, 3 );
else BBITKVTK_itkImage2vtkImageData_Template( t, unsigned long, 3 );
-
+
/* Deprecated
BBTK_TEMPLATE_ITK_IMAGE_SWITCH(t,Convert);
*/
conv = ItkToVtkConnection::New();
mConverter = conv;
conv->SetInput( this->bbGetInputIn().get< itkImageTypePointer >() );
- }
- else
- {
+ } else {
bbtkDebugMessage("process",5," ["<<bbGetFullName()<<"] : Converter ok "<<std::endl);
// Input itkImageType type changed ?
conv->SetInput( this->bbGetInputIn().get<itkImageTypePointer>() );
}
- else
- {
+ else {
bbtkDebugMessage("process",5," ["<<bbGetFullName()<<"] : Nothing changed"<<std::endl);
}
- }
- try
- {
+ } try {
bbtkDebugMessage("process",5," ["<<bbGetFullName()<<"] : Trying update"<<std::endl);
bbtkDebugMessage("process",5,"<== ["<<bbGetFullName()<<"] : Convert<"
<<bbtk::TypeName<T>()
<<">() *DONE*"<<std::endl);
+
}
void itkImage2vtkImageData::bbUserSetDefaultValues()