18#ifndef itkIntensityWindowingImageFilter_h
19#define itkIntensityWindowingImageFilter_h
30template <
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;
99 const auto result =
static_cast<TOutput
>(value);
141template <
typename TInputImage,
typename TOutputImage = TInputImage>
146 Functor::IntensityWindowingTransform<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
214#ifdef ITK_USE_CONCEPT_CHECKING
236#ifndef ITK_MANUAL_INSTANTIATION
237# include "itkIntensityWindowingImageFilter.hxx"
Control indentation during Print() invocation.
Applies a linear transformation to the intensity levels of the input Image that are inside a user-def...
void BeforeThreadedGenerateData() override
InputPixelType GetWindow() const
IntensityWindowingImageFilter()
typename TOutputImage::PixelType OutputPixelType
~IntensityWindowingImageFilter() override=default
typename NumericTraits< InputPixelType >::RealType RealType
typename TInputImage::PixelType InputPixelType
InputPixelType GetLevel() const
void SetWindowLevel(const InputPixelType &window, const InputPixelType &level)
void PrintSelf(std::ostream &os, Indent indent) const override
Light weight base class for most itk classes.
Define additional traits for native types such as int or float.
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....