18 #ifndef itkMorphSDTHelperImageFilter_h
19 #define itkMorphSDTHelperImageFilter_h
37 template<
class TInput1,
class TInput2 = TInput1,
class TInput3 = TInput1,
class TOutput = TInput1 >
51 return !( *
this != other );
54 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B,
const TInput3 & C)
60 return static_cast< TOutput
>( std::sqrt( (
double)A +
m_Val ) );
65 return static_cast< TOutput
>( -std::sqrt(
m_Val - (
double)B) );
74 template<
class TInputImage1,
class TInputImage2 = TInputImage1,
class TInputImage3 = TInputImage1,
75 class TOutputImage = TInputImage1 >
79 Function::MorphSDTHelper<
80 typename TInputImage1::PixelType,
81 typename TInputImage2::PixelType,
82 typename TInputImage3::PixelType,
83 typename TOutputImage::PixelType > >
92 typename TInputImage1::PixelType,
93 typename TInputImage2::PixelType,
94 typename TInputImage3::PixelType,
95 typename TOutputImage::PixelType >
110 this->GetFunctor().SetVal(val);
114 #ifdef ITK_USE_CONCEPT_CHECKING
118 typename TOutputImage::PixelType > ) );
121 typename TOutputImage::PixelType > ) );
124 typename TInputImage3::PixelType > ) );
bool operator==(const MorphSDTHelper &other) const
bool operator!=(const MorphSDTHelper &) const
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Implements pixel-wise generic operation of three images.
Base class for all process objects that output image data.
MorphSDTHelperImageFilter()
Implements a pixel-wise operator to form a signed distance transform.
#define itkConceptMacro(name, concept)
TOutput operator()(const TInput1 &A, const TInput2 &B, const TInput3 &C)
virtual ~MorphSDTHelperImageFilter()