18 #ifndef itkSharpenOpImageFilter_h
19 #define itkSharpenOpImageFilter_h
48 template<
class TInput1,
class TInput2,
class TInput3,
class TOutput >
61 return !( *
this != other );
70 TInput2 diff1 = A - B;
71 TInput2 diff2 = B - C;
73 if ( diff1 < diff2 ) {
return (TOutput)A; }
74 if ( diff2 < diff1 ) {
return (TOutput)C; }
75 return ( (TOutput)B );
80 template<
class TInputImage1,
class TInputImage2,
81 class TInputImage3,
class TOutputImage >
85 TInputImage3, TOutputImage,
86 Function::SharpM< typename TInputImage1::PixelType,
87 typename TInputImage2::PixelType,
88 typename TInputImage3::PixelType,
89 typename TOutputImage::PixelType > >
95 TInputImage3, TOutputImage,
97 typename TInputImage2::PixelType,
98 typename TInputImage3::PixelType,
114 void operator=(
const Self &);
bool operator!=(const SharpM &) const
Implements the sharpening operation. The inputs are the dilated, eroded and original images...
bool operator==(const SharpM &other) const
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
TOutput operator()(const TInput1 &A, const TInput2 &B, const TInput3 &C)
Implements pixel-wise generic operation of three images.
Base class for all process objects that output image data.
SharpenOpImageFilter Self
TernaryFunctorImageFilter< TInputImage1, TInputImage2, TInputImage3, TOutputImage, Function::SharpM< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TInputImage3::PixelType, typename TOutputImage::PixelType > > Superclass
virtual ~SharpenOpImageFilter()