Program: bbtk
Module: $RCSfile: bbitkBinaryThresholdImageFilter.h,v $
Language: C++
- Date: $Date: 2009/05/15 14:57:58 $
- Version: $Revision: 1.12 $
+ 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();
-
};
+ //===================================================
+ //===================================================
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
inline void ProcessSwitch();
template <class T> void Process();
};
+ //===================================================
+
+ //===================================================
+
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>::bbUserSetDefaultValues()
-// {
-// bbSetInputLowerThreshold(0);
-// bbSetInputUpperThreshold(100);
-// bbSetInputInsideValue(255);
-// bbSetInputOutsideValue(0);
-// }
-
- void BinaryThresholdImageFilterGeneric::bbUserSetDefaultValues()
- {
- bbSetInputLowerThreshold(0);
- bbSetInputUpperThreshold(100);
- bbSetInputInsideValue(255);
- bbSetInputOutsideValue(0);
- }
- //--
- template <class T>
- void BinaryThresholdImageFilter<T>::bbUserInitializeProcessing()
- {
- }
-
- void BinaryThresholdImageFilterGeneric::bbUserInitializeProcessing()
- {
- }
-
-//--
-
- //--
-
- template <class T>
- void BinaryThresholdImageFilter<T>::bbUserFinalizeProcessing()
- {
- }
-
- void BinaryThresholdImageFilterGeneric::bbUserFinalizeProcessing()
- {
- }
+
}