21 #ifndef otbComplexToVectorImageCastFilter_h
22 #define otbComplexToVectorImageCastFilter_h
24 #include "itkUnaryFunctorImageFilter.h"
25 #include "vnl/vnl_math.h"
26 #include "itkVariableLengthVector.h"
45 template <
class TInput,
class TOutput>
71 template <
class TInput,
class TOutput>
77 typedef itk::VariableLengthVector<ValueType>
TestType;
89 output.SetSize(2 * A.Size());
91 for (
unsigned int i = 0; i < A.Size(); ++i)
102 template <
class TInput,
class TOutput>
110 template <
class TInput,
class TOutput>
119 template <
class TInputImage,
class TOutputImage>
121 :
public itk::UnaryFunctorImageFilter<TInputImage, TOutputImage,
122 typename Functor::ComplexToVector<typename TInputImage::PixelType, typename TOutputImage::PixelType>::FunctorType>
127 typedef itk::UnaryFunctorImageFilter<TInputImage, TOutputImage,
165 Superclass::GenerateOutputInformation();
167 if (!this->PixelIsSingle(dummy))
169 this->GetOutput()->SetNumberOfComponentsPerPixel(2 * this->GetInput()->GetNumberOfComponentsPerPixel());
175 void operator=(
const Self&) =
delete;