18 #ifndef itkIntensityWindowingImageFilter_h
19 #define itkIntensityWindowingImageFilter_h
30 template<
typename TInput,
typename TOutput >
59 return !( *
this != other );
70 if ( x < m_WindowMinimum )
72 return m_OutputMinimum;
74 if ( x > m_WindowMaximum )
76 return m_OutputMaximum;
79 const auto result =
static_cast< TOutput
>( value );
120 template<
typename TInputImage,
typename TOutputImage = TInputImage >
124 Functor::IntensityWindowingTransform<
125 typename TInputImage::PixelType,
126 typename TOutputImage::PixelType > >
134 TInputImage, TOutputImage,
136 typename TInputImage::PixelType,
137 typename TOutputImage::PixelType > >;
183 itkGetConstReferenceMacro(Scale,
RealType);
184 itkGetConstReferenceMacro(Shift,
RealType);
188 void BeforeThreadedGenerateData()
override;
190 void PrintSelf(std::ostream & os,
Indent indent)
const override;
192 #ifdef ITK_USE_CONCEPT_CHECKING
215 #ifndef ITK_MANUAL_INSTANTIATION
216 #include "itkIntensityWindowingImageFilter.hxx"
InputPixelType m_WindowMinimum
Define numeric traits for std::vector.
typename NumericTraits< InputPixelType >::RealType RealType
OutputPixelType m_OutputMinimum
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename TInputImage::PixelType InputPixelType
Applies a linear transformation to the intensity levels of the input Image that are inside a user-def...
typename TOutputImage::PixelType OutputPixelType
OutputPixelType m_OutputMaximum
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
InputPixelType m_WindowMaximum
Implements pixel-wise generic operation on one image.
Control indentation during Print() invocation.
#define itkConceptMacro(name, concept)