18 #ifndef itkIntensityWindowingImageFilter_h
19 #define itkIntensityWindowingImageFilter_h
30 template <
typename TInput,
typename TOutput>
61 return !(*
this != other);
77 m_OutputMinimum = min;
82 m_OutputMaximum = max;
87 m_WindowMinimum = min;
92 m_WindowMaximum = max;
97 if (x < m_WindowMinimum)
99 return m_OutputMinimum;
101 if (x > m_WindowMaximum)
103 return m_OutputMaximum;
105 const RealType value = static_cast<RealType>(x) * m_Factor + m_Offset;
106 const auto result = static_cast<TOutput>(value);
148 template <
typename TInputImage,
typename TOutputImage = TInputImage>
153 Functor::IntensityWindowingTransform<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
210 itkGetConstReferenceMacro(Scale,
RealType);
211 itkGetConstReferenceMacro(Shift,
RealType);
216 BeforeThreadedGenerateData()
override;
219 PrintSelf(std::ostream & os,
Indent indent)
const override;
221 #ifdef ITK_USE_CONCEPT_CHECKING
243 #ifndef ITK_MANUAL_INSTANTIATION
244 # include "itkIntensityWindowingImageFilter.hxx"