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__)
76 TOutput result =
static_cast< TOutput
>( value ) - static_cast< TOutput >( m_EpsilonCompensation );
79 TOutput result =
static_cast< TOutput
>( value );
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 > >
147 TInputImage, TOutputImage,
149 typename TInputImage::PixelType,
174 itkGetConstReferenceMacro(Scale,
RealType);
175 itkGetConstReferenceMacro(Shift,
RealType);
190 #ifdef ITK_USE_CONCEPT_CHECKING
209 void operator=(const
Self &) ITK_DELETE_FUNCTION;
222 #ifndef ITK_MANUAL_INSTANTIATION
223 #include "itkRescaleIntensityImageFilter.hxx"
InputPixelType m_InputMinimum
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Base class for all process objects that output image data.
virtual ~RescaleIntensityImageFilter()
OutputPixelType m_OutputMinimum
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
void BeforeThreadedGenerateData() override
OutputPixelType m_OutputMaximum
Implements pixel-wise generic operation on one image.
TInputImage::PixelType InputPixelType
Applies a linear transformation to the intensity levels of the input Image.
void PrintSelf(std::ostream &os, Indent indent) const override
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::IntensityLinearTransform< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
Control indentation during Print() invocation.
RescaleIntensityImageFilter()
static T NonpositiveMin()
Define additional traits for native types such as int or float.
InputPixelType m_InputMaximum
#define itkConceptMacro(name, concept)
NumericTraits< InputPixelType >::RealType RealType
RescaleIntensityImageFilter Self
TOutputImage::PixelType OutputPixelType