Program: bbtk
Module: $RCSfile: bbitkBinaryThresholdImageFilter.h,v $
Language: C++
- Date: $Date: 2009/03/23 12:55:49 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2009/05/18 10:45:43 $
+ Version: $Revision: 1.13 $
=========================================================================*/
/* ---------------------------------------------------------------------
namespace bbitk
{
+ //===================================================
template <class T>
class /*BBTK_EXPORT*/ BinaryThresholdImageFilter
:
BBTK_ITK_PROCESS();
BBTK_ITK_DELETE();
- void bbUserConstructor() { Init(); }
- void bbUserCopyConstructor(bbtk::BlackBox::Pointer) { Init(); }
- void Init();
-
};
+ //===================================================
+ //===================================================
BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(BinaryThresholdImageFilter,
bbtk::AtomicBlackBox);
BBTK_NAME("BinaryThresholdImageFilter<"+bbtk::TypeName<T>()+">");
typename T::PixelType);
BBTK_TEMPLATE_OUTPUT(BinaryThresholdImageFilter,Out,"Output image",T*);
BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(BinaryThresholdImageFilter);
+ //===================================================
+
+
+ //===================================================
+ //--
+ template <class T>
+ void BinaryThresholdImageFilter<T>::bbUserSetDefaultValues()
+ {
+ bbSetInputLowerThreshold(0);
+ bbSetInputUpperThreshold(100);
+ bbSetInputInsideValue(255);
+ bbSetInputOutsideValue(0);
+ }
+ template <class T>
+ void BinaryThresholdImageFilter<T>::bbUserInitializeProcessing()
+ {
+ }
+ template <class T>
+ void BinaryThresholdImageFilter<T>::bbUserFinalizeProcessing()
+ {
+ }
+
+ //===================================================
+
+
+
+
+
+
+
+
+
+
//===================================================
// Generic "untemplatized" filter
private :
inline void ProcessSwitch();
template <class T> void Process();
- void bbUserConstructor() { Init(); }
- void bbUserCopyConstructor(bbtk::BlackBox::Pointer) { Init(); }
- void Init();
};
+ //===================================================
+
+ //===================================================
+
BBTK_BEGIN_DESCRIBE_BLACK_BOX(BinaryThresholdImageFilterGeneric,
bbtk::AtomicBlackBox);
BBTK_NAME("BinaryThresholdImageFilter");
"Output image. Of the same type and dimension than the input image",
anyImagePointer,"");
BBTK_END_DESCRIBE_BLACK_BOX(BinaryThresholdImageFilterGeneric);
+ //===================================================
+
+
+ //===================================================
void BinaryThresholdImageFilterGeneric::ProcessSwitch()
{
BBTK_TEMPLATE_ITK_IMAGE_SWITCH(bbGetInputIn().type(), this->Process);
}
+ //===================================================
+
+
+ //===================================================
template <class T>
void BinaryThresholdImageFilterGeneric::Process()
bbtkDebugDecTab("Core",9);
}
-
- template <class T>
- void BinaryThresholdImageFilter<T>::Init()
- {
- bbSetInputLowerThreshold(0);
- bbSetInputUpperThreshold(100);
- bbSetInputInsideValue(255);
- bbSetInputOutsideValue(0);
- }
- void BinaryThresholdImageFilterGeneric::Init()
- {
- bbSetInputLowerThreshold(0);
- bbSetInputUpperThreshold(100);
- bbSetInputInsideValue(255);
- bbSetInputOutsideValue(0);
- }
+ //===================================================
+
+
+
+
+
+
+
}
// EO namespace bbtk