18 #ifndef itkIntensityWindowingImageFilter_h
19 #define itkIntensityWindowingImageFilter_h
30 template<
typename TInput,
typename TOutput >
59 return !( *
this != other );
70 if ( x < m_WindowMinimum )
72 return m_OutputMinimum;
74 if ( x > m_WindowMaximum )
76 return m_OutputMaximum;
79 const TOutput result =
static_cast< TOutput
>( value );
120 template<
typename TInputImage,
typename TOutputImage = TInputImage >
124 Functor::IntensityWindowingTransform<
125 typename TInputImage::PixelType,
126 typename TOutputImage::PixelType > >
132 TInputImage, TOutputImage,
134 typename TInputImage::PixelType,
181 itkGetConstReferenceMacro(Scale,
RealType);
182 itkGetConstReferenceMacro(Shift,
RealType);
186 void BeforeThreadedGenerateData(
void) ITK_OVERRIDE;
188 void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
190 #ifdef ITK_USE_CONCEPT_CHECKING
215 #ifndef ITK_MANUAL_INSTANTIATION
216 #include "itkIntensityWindowingImageFilter.hxx"
InputPixelType m_WindowMinimum
IntensityWindowingImageFilter Self
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::IntensityWindowingTransform< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
NumericTraits< InputPixelType >::RealType RealType
OutputPixelType m_OutputMinimum
SmartPointer< const Self > ConstPointer
TOutputImage::PixelType OutputPixelType
Base class for all process objects that output image data.
Applies a linear transformation to the intensity levels of the input Image that are inside a user-def...
TInputImage::PixelType InputPixelType
OutputPixelType m_OutputMaximum
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
InputPixelType m_WindowMaximum
virtual ~IntensityWindowingImageFilter() override
Implements pixel-wise generic operation on one image.
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)