18#ifndef itkSpectra1DAveragingImageFilter_h
19#define itkSpectra1DAveragingImageFilter_h
36template <
typename TInputImage,
typename TOutputImage = TInputImage>
63#ifdef ITK_USE_CONCEPT_CHECKING
91 template <
typename TIn,
typename TOut>
92 std::enable_if_t<!std::is_same<OutputImageType, VectorImage<OutputScalarType, TOut::ImageDimension>>::value>
97 template <
typename TIn,
typename TOut>
98 std::enable_if_t<!std::is_same<InputImageType, VectorImage<InputScalarType, TIn::ImageDimension>>::value &&
99 std::is_same<OutputImageType, VectorImage<OutputScalarType, TOut::ImageDimension>>::value>
102 this->
GetOutput()->SetVectorLength(TIn::PixelType::Dimension);
104 template <
typename TIn,
typename TOut>
105 std::enable_if_t<std::is_same<InputImageType, VectorImage<InputScalarType, TIn::ImageDimension>>::value &&
106 std::is_same<OutputImageType, VectorImage<OutputScalarType, TOut::ImageDimension>>::value>
109 this->
GetOutput()->SetVectorLength(in->GetVectorLength());
117#ifndef ITK_MANUAL_INSTANTIATION
118# include "itkSpectra1DAveragingImageFilter.hxx"
typename PixelType::ComponentType ComponentType
OutputImageType * GetOutput()
Implements transparent reference counting.
Spectra1DAveragingImageFilter()=default
~Spectra1DAveragingImageFilter() override=default
void GenerateData() override
std::enable_if_t< std::is_same< InputImageType, VectorImage< InputScalarType, TIn::ImageDimension > >::value &&std::is_same< OutputImageType, VectorImage< OutputScalarType, TOut::ImageDimension > >::value > PrepareOutput(TIn *in, TOut *out)
VectorImage< OutputScalarType, OutputImageDimension > OutputVectorImage
static constexpr unsigned int OutputImageDimension
ImageToImageFilter< InputImageType, OutputImageType > Superclass
static constexpr unsigned int InputImageDimension
TInputImage InputImageType
void GenerateOutputInformation() override
Spectra1DAveragingImageFilter Self
void VerifyInputInformation() const override
Verifies that the input images occupy the same physical space and the each index is at the same physi...
typename DefaultConvertPixelTraits< typename InputImageType::PixelType >::ComponentType InputScalarType
SmartPointer< const Self > ConstPointer
TOutputImage OutputImageType
std::enable_if_t<!std::is_same< InputImageType, VectorImage< InputScalarType, TIn::ImageDimension > >::value &&std::is_same< OutputImageType, VectorImage< OutputScalarType, TOut::ImageDimension > >::value > PrepareOutput(TIn *in, TOut *out)
typename OutputImageType::PixelType OutputPixelType
VectorImage< InputScalarType, InputImageDimension > InputVectorImage
SmartPointer< Self > Pointer
typename DefaultConvertPixelTraits< typename OutputImageType::PixelType >::ComponentType OutputScalarType
typename InputImageType::IndexType IndexType
typename InputImageType::PixelType InputPixelType
std::enable_if_t<!std::is_same< OutputImageType, VectorImage< OutputScalarType, TOut::ImageDimension > >::value > PrepareOutput(TIn *, TOut *)
Templated n-dimensional vector image class.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....