18 #ifndef itkRescaleIntensityImageFilter_h
19 #define itkRescaleIntensityImageFilter_h
30 template<
typename TInput,
typename TOutput >
41 #if defined (__GNUC__) && (__GNUC__ == 5) && (__GNUC_MINOR__ == 2) && defined(NDEBUG) && defined(__i386__)
42 m_EpsilonCompensation =
static_cast<RealType>(std::numeric_limits<TOutput>::epsilon());
43 if (m_EpsilonCompensation == 0)
45 m_EpsilonCompensation = std::numeric_limits<RealType>::epsilon();
69 return !( *
this != other );
74 #if defined (__GNUC__) && (__GNUC__ == 5) && (__GNUC_MINOR__ == 2) && defined(NDEBUG) && defined(__i386__)
75 RealType value =
static_cast< RealType >( x ) * m_Factor + m_Offset + m_EpsilonCompensation;
76 TOutput result =
static_cast< TOutput
>( value ) - static_cast< TOutput >( m_EpsilonCompensation );
79 auto result =
static_cast< TOutput
>( value );
81 result = ( result > m_Maximum ) ? m_Maximum : result;
82 result = ( result < m_Minimum ) ? m_Minimum : result;
91 #if defined (__GNUC__) && (__GNUC__ == 5) && (__GNUC_MINOR__ == 2) && defined(NDEBUG) && defined(__i386__)
135 template<
typename TInputImage,
typename TOutputImage = TInputImage >
139 Functor::IntensityLinearTransform<
140 typename TInputImage::PixelType,
141 typename TOutputImage::PixelType > >
149 TInputImage, TOutputImage,
151 typename TInputImage::PixelType,
152 typename TOutputImage::PixelType > >;
176 itkGetConstReferenceMacro(Scale,
RealType);
177 itkGetConstReferenceMacro(Shift,
RealType);
187 void BeforeThreadedGenerateData()
override;
190 void PrintSelf(std::ostream & os,
Indent indent)
const override;
192 #ifdef ITK_USE_CONCEPT_CHECKING
221 #ifndef ITK_MANUAL_INSTANTIATION
222 #include "itkRescaleIntensityImageFilter.hxx"
InputPixelType m_InputMinimum
Define numeric traits for std::vector.
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.
OutputPixelType m_OutputMinimum
typename TInputImage::PixelType InputPixelType
typename NumericTraits< InputPixelType >::RealType RealType
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
OutputPixelType m_OutputMaximum
Implements pixel-wise generic operation on one image.
Applies a linear transformation to the intensity levels of the input Image.
Control indentation during Print() invocation.
InputPixelType m_InputMaximum
#define itkConceptMacro(name, concept)
typename TOutputImage::PixelType OutputPixelType