18 #ifndef itkIntensityWindowingImageFilter_h
19 #define itkIntensityWindowingImageFilter_h
30 template <
typename TInput,
typename TOutput>
70 m_OutputMinimum = min;
75 m_OutputMaximum = max;
80 m_WindowMinimum = min;
85 m_WindowMaximum = max;
90 if (x < m_WindowMinimum)
92 return m_OutputMinimum;
94 if (x > m_WindowMaximum)
96 return m_OutputMaximum;
98 const RealType value = static_cast<RealType>(x) * m_Factor + m_Offset;
99 const auto result = static_cast<TOutput>(value);
141 template <
typename TInputImage,
typename TOutputImage = TInputImage>
146 Functor::IntensityWindowingTransform<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
203 itkGetConstReferenceMacro(Scale,
RealType);
204 itkGetConstReferenceMacro(Shift,
RealType);
209 BeforeThreadedGenerateData()
override;
212 PrintSelf(std::ostream & os,
Indent indent)
const override;
214 #ifdef ITK_USE_CONCEPT_CHECKING
236 #ifndef ITK_MANUAL_INSTANTIATION
237 # include "itkIntensityWindowingImageFilter.hxx"