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 > >
97 TInputImage3, TOutputImage,
99 typename TInputImage2::PixelType,
100 typename TInputImage3::PixelType,
101 typename TOutputImage::PixelType > >;
bool operator!=(const SharpM &) const
Implements the sharpening operation. The inputs are the dilated, eroded and original images...
bool operator==(const SharpM &other) const
TOutput operator()(const TInput1 &A, const TInput2 &B, const TInput3 &C)
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.
~SharpenOpImageFilter() override