18 #ifndef itkRescaleIntensityImageFilter_h
19 #define itkRescaleIntensityImageFilter_h
30 template <
typename TInput,
typename TOutput>
77 const RealType value = static_cast<RealType>(x) * m_Factor + m_Offset;
78 auto result = static_cast<TOutput>(value);
80 result = (result > m_Maximum) ? m_Maximum : result;
81 result = (result < m_Minimum) ? m_Minimum : result;
132 template <
typename TInputImage,
typename TOutputImage = TInputImage>
137 Functor::IntensityLinearTransform<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
171 itkGetConstReferenceMacro(Scale,
RealType);
172 itkGetConstReferenceMacro(Shift,
RealType);
183 BeforeThreadedGenerateData()
override;
187 PrintSelf(std::ostream & os,
Indent indent)
const override;
189 #ifdef ITK_USE_CONCEPT_CHECKING
214 #ifndef ITK_MANUAL_INSTANTIATION
215 # include "itkRescaleIntensityImageFilter.hxx"