18#ifndef itkRescaleIntensityImageFilter_h
19#define itkRescaleIntensityImageFilter_h
30template <
typename TInput,
typename TOutput>
78 auto result =
static_cast<TOutput
>(value);
80 result = (result > m_Maximum) ? m_Maximum : result;
81 result = (result < m_Minimum) ? m_Minimum : result;
132template <
typename TInputImage,
typename TOutputImage = TInputImage>
137 Functor::IntensityLinearTransform<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
189#ifdef ITK_USE_CONCEPT_CHECKING
214#ifndef ITK_MANUAL_INSTANTIATION
215# include "itkRescaleIntensityImageFilter.hxx"
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Define additional traits for native types such as int or float.
static constexpr T NonpositiveMin()
static constexpr T max(const T &)
Applies a linear transformation to the intensity levels of the input Image.
typename NumericTraits< InputPixelType >::RealType RealType
typename TInputImage::PixelType InputPixelType
RescaleIntensityImageFilter()
void PrintSelf(std::ostream &os, Indent indent) const override
~RescaleIntensityImageFilter() override=default
void BeforeThreadedGenerateData() override
typename TOutputImage::PixelType OutputPixelType
Implements pixel-wise generic operation on one image.
#define itkConceptMacro(name, concept)
bool ExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Return the result of an exact comparison between two scalar values of potentially different types.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....