22 #ifndef otbVectorImageToMatrixFilter_h
23 #define otbVectorImageToMatrixFilter_h
27 #include "itkSimpleDataObjectDecorator.h"
28 #include "itkImageRegionSplitter.h"
29 #include "itkVariableSizeMatrix.h"
30 #include "itkVariableLengthVector.h"
53 template <
class TInputImage>
73 typedef typename TInputImage::SizeType
SizeType;
78 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
81 itkStaticConstMacro(ImageDimension,
unsigned int, TInputImage::ImageDimension);
105 using Superclass::MakeOutput;
110 void AllocateOutputs()
override;
111 void GenerateOutputInformation()
override;
112 void Synthetize(
void)
override;
113 void Reset(
void)
override;
121 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
122 void DynamicThreadedGenerateData(
const RegionType& outputRegionForThread)
override;
151 template <
class TInputImage>
173 using Superclass::SetInput;
176 this->GetFilter()->SetInput(input);
180 return this->GetFilter()->GetInput();
186 return this->GetMatrixOutput()->Get();
190 return this->GetFilter()->GetMatrixOutput();
194 return this->GetFilter()->GetMatrixOutput();
214 #ifndef OTB_MANUAL_INSTANTIATION
This filter link a persistent filter with a StreamingImageVirtualWriter.
This filter is the base class for all filter persisting data through multiple update....
Compute covariance & correlation of a large image using streaming.
void operator=(const Self &)=delete
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
PersistentVectorImageToMatrixFilter(const Self &)=delete
itk::SmartPointer< const Self > ConstPointer
TInputImage::PixelType PixelType
itk::SimpleDataObjectDecorator< MatrixType > MatrixObjectType
InternalPixelType RealType
TInputImage::SizeType SizeType
TInputImage::RegionType RegionType
itk::DataObject::Pointer DataObjectPointer
itk::SmartPointer< Self > Pointer
itk::VariableLengthVector< RealType > RealPixelType
TInputImage::InternalPixelType InternalPixelType
~PersistentVectorImageToMatrixFilter() override
vnl_matrix< RealType > MatrixType
TInputImage::IndexType IndexType
TInputImage::Pointer InputImagePointer
PersistentImageFilter< TInputImage, TInputImage > Superclass
PersistentVectorImageToMatrixFilter Self
This class streams the whole input image through the PersistentStatisticsImageFilter.
VectorImageToMatrixImageFilter Self
void operator=(const Self &)=delete
MatrixObjectType * GetMatrixOutput()
~VectorImageToMatrixImageFilter() override
PersistentFilterType::MatrixType MatrixType
PersistentFilterStreamingDecorator< PersistentVectorImageToMatrixFilter< TInputImage > > Superclass
const MatrixType & GetMatrix() const
VectorImageToMatrixImageFilter(const Self &)=delete
VectorImageToMatrixImageFilter()
TInputImage InputImageType
Superclass::FilterType PersistentFilterType
const MatrixObjectType * GetMatrixOutput() const
PersistentFilterType::MatrixObjectType MatrixObjectType
void SetInput(InputImageType *input)
itk::SmartPointer< Self > Pointer
const InputImageType * GetInput()
itk::SmartPointer< const Self > ConstPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.