18#ifndef itkVectorRescaleIntensityImageFilter_h
19#define itkVectorRescaleIntensityImageFilter_h
30template <
typename TInput,
typename TOutput>
59 for (
unsigned int i = 0; i < VectorDimension; ++i)
62 result[i] =
static_cast<typename TOutput::ValueType
>(scaledComponent);
95template <
typename TInputImage,
typename TOutputImage = TInputImage>
100 Functor::VectorMagnitudeLinearTransform<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
122 using typename Superclass::InputImageType;
123 using typename Superclass::InputImagePointer;
132 itkGetConstReferenceMacro(OutputMaximumMagnitude,
OutputRealType);
143 itkGetConstReferenceMacro(InputMaximumMagnitude,
InputRealType);
147 BeforeThreadedGenerateData()
override;
150 PrintSelf(std::ostream & os,
Indent indent)
const override;
152#ifdef ITK_USE_CONCEPT_CHECKING
165 InputRealType m_Shift{};
168 OutputRealType m_OutputMaximumMagnitude{};
172#ifndef ITK_MANUAL_INSTANTIATION
173# include "itkVectorRescaleIntensityImageFilter.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.
Implements pixel-wise generic operation on one image.
Applies a linear transformation to the magnitude of pixel vectors in a vector Image.
typename InputPixelType::ValueType InputValueType
typename TInputImage::PixelType InputPixelType
typename OutputPixelType::ValueType OutputValueType
typename NumericTraits< OutputValueType >::RealType OutputRealType
typename NumericTraits< InputValueType >::RealType InputRealType
typename TOutputImage::PixelType OutputPixelType
#define itkConceptMacro(name, concept)
constexpr unsigned int Dimension
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....