OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 > Class Template Reference

#include <otbStreamingMatrixTransposeMatrixImageFilter.h>

+ Inheritance diagram for otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >:
+ Collaboration diagram for otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >:

Public Types

typedef itk::Array< long > ArrayLongPixelType
 
typedef std::vector< MatrixTypeArrayMatrixType
 
typedef std::vector< PixelTypeArrayPixelType
 
typedef std::vector< RealPixelTypeArrayRealPixelType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef TInputImage ImageType
 
typedef TInputImage::IndexType IndexType
 
typedef TInputImage2::IndexType IndexType2
 
typedef TInputImage::Pointer InputImagePointer
 
typedef TInputImage::InternalPixelType InternalPixelType
 
typedef TInputImage2::InternalPixelType InternalPixelType2
 
typedef itk::SimpleDataObjectDecorator< MatrixTypeMatrixObjectType
 
typedef itk::VariableSizeMatrix< RealTypeMatrixType
 
typedef itk::SimpleDataObjectDecorator< PixelTypePixelObjectType
 
typedef TInputImage::PixelType PixelType
 
typedef TInputImage2::PixelType PixelType2
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SimpleDataObjectDecorator< RealPixelTypeRealPixelObjectType
 
typedef itk::VariableLengthVector< RealTypeRealPixelType
 
typedef double RealType
 
typedef TInputImage::RegionType RegionType
 
typedef PersistentMatrixTransposeMatrixImageFilter Self
 
typedef TInputImage::SizeType SizeType
 
typedef PersistentImageFilter< TInputImage, TInputImage > Superclass
 
- Public Types inherited from otb::PersistentImageFilter< TInputImage, TInputImage >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef TInputImage InputImageType
 
typedef TInputImage OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef PersistentImageFilter Self
 
typedef itk::ImageToImageFilter< TInputImage, TInputImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual bool GetUsePadFirstInput ()
 
virtual bool GetUsePadSecondInput ()
 
virtual void SetUsePadFirstInput (bool _arg)
 
virtual void SetUsePadSecondInput (bool _arg)
 
- Public Member Functions inherited from otb::PersistentImageFilter< TInputImage, TInputImage >
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = TInputImage::ImageDimension
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
ArrayMatrixType m_ThreadSum
 
bool m_UsePadFirstInput
 
bool m_UsePadSecondInput
 
unsigned int m_NumberOfComponents1
 
unsigned int m_NumberOfComponents2
 
MatrixType GetResult () const
 
MatrixObjectTypeGetResultOutput ()
 
const MatrixObjectTypeGetResultOutput () const
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
void AllocateOutputs () override
 
void GenerateOutputInformation () override
 
void GenerateInputRequestedRegion () override
 
void Reset (void) override
 
void Synthetize (void) override
 
void SetFirstInput (const TInputImage *input1)
 
void SetSecondInput (const TInputImage2 *input2)
 
const TInputImage * GetFirstInput ()
 
const TInputImage2 * GetSecondInput ()
 
 PersistentMatrixTransposeMatrixImageFilter ()
 
 ~PersistentMatrixTransposeMatrixImageFilter () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void ThreadedGenerateData (const RegionType &outputRegionForThread, itk::ThreadIdType threadId) override
 
 PersistentMatrixTransposeMatrixImageFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from otb::PersistentImageFilter< TInputImage, TInputImage >
 PersistentImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~PersistentImageFilter () override
 

Detailed Description

template<class TInputImage, class TInputImage2>
class otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >

Compute.

\[X^T.Y \]

. Allow a padding of ones.

\[X\]

and

\[Y\]

are the input images. The padding has the effect of adding a component filled with ones to the image

This filter persists its temporary data. It means that if you Update it n times on n different requested regions, the output statistics will be the result for the whole set of n regions.

To reset the temporary data, one should call the Reset() function.

To get the statistics once the regions have been processed via the pipeline, use the Synthetize() method.

See also
StreamingTraits
StatisticsImageFilter

Definition at line 55 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

Member Typedef Documentation

◆ ArrayLongPixelType

template<class TInputImage , class TInputImage2 >
typedef itk::Array<long> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::ArrayLongPixelType

Type of DataObjects used for scalar outputs

Definition at line 104 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ ArrayMatrixType

template<class TInputImage , class TInputImage2 >
typedef std::vector<MatrixType> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::ArrayMatrixType

◆ ArrayPixelType

template<class TInputImage , class TInputImage2 >
typedef std::vector<PixelType> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::ArrayPixelType

◆ ArrayRealPixelType

template<class TInputImage , class TInputImage2 >
typedef std::vector<RealPixelType> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::ArrayRealPixelType

◆ ConstPointer

template<class TInputImage , class TInputImage2 >
typedef itk::SmartPointer<const Self> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::ConstPointer

◆ DataObjectPointer

template<class TInputImage , class TInputImage2 >
typedef itk::DataObject::Pointer otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::DataObjectPointer

Smart Pointer type to a DataObject.

Definition at line 100 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ DataObjectPointerArraySizeType

template<class TInputImage , class TInputImage2 >
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::DataObjectPointerArraySizeType

◆ ImageType

template<class TInputImage , class TInputImage2 >
typedef TInputImage otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::ImageType

Image related typedefs.

Definition at line 68 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ IndexType

template<class TInputImage , class TInputImage2 >
typedef TInputImage::IndexType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::IndexType

◆ IndexType2

template<class TInputImage , class TInputImage2 >
typedef TInputImage2::IndexType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::IndexType2

◆ InputImagePointer

template<class TInputImage , class TInputImage2 >
typedef TInputImage::Pointer otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::InputImagePointer

◆ InternalPixelType

template<class TInputImage , class TInputImage2 >
typedef TInputImage::InternalPixelType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::InternalPixelType

◆ InternalPixelType2

template<class TInputImage , class TInputImage2 >
typedef TInputImage2::InternalPixelType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::InternalPixelType2

◆ MatrixObjectType

template<class TInputImage , class TInputImage2 >
typedef itk::SimpleDataObjectDecorator<MatrixType> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::MatrixObjectType

◆ MatrixType

template<class TInputImage , class TInputImage2 >
typedef itk::VariableSizeMatrix<RealType> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::MatrixType

◆ PixelObjectType

template<class TInputImage , class TInputImage2 >
typedef itk::SimpleDataObjectDecorator<PixelType> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::PixelObjectType

◆ PixelType

template<class TInputImage , class TInputImage2 >
typedef TInputImage::PixelType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::PixelType

◆ PixelType2

template<class TInputImage , class TInputImage2 >
typedef TInputImage2::PixelType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::PixelType2

◆ Pointer

template<class TInputImage , class TInputImage2 >
typedef itk::SmartPointer<Self> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Pointer

◆ RealPixelObjectType

template<class TInputImage , class TInputImage2 >
typedef itk::SimpleDataObjectDecorator<RealPixelType> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::RealPixelObjectType

◆ RealPixelType

template<class TInputImage , class TInputImage2 >
typedef itk::VariableLengthVector<RealType> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::RealPixelType

◆ RealType

template<class TInputImage , class TInputImage2 >
typedef double otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::RealType

Type to use for computations.

Definition at line 96 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ RegionType

template<class TInputImage , class TInputImage2 >
typedef TInputImage::RegionType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::RegionType

◆ Self

template<class TInputImage , class TInputImage2 >
typedef PersistentMatrixTransposeMatrixImageFilter otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Self

Standard Self typedef

Definition at line 59 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ SizeType

template<class TInputImage , class TInputImage2 >
typedef TInputImage::SizeType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::SizeType

◆ Superclass

template<class TInputImage , class TInputImage2 >
typedef PersistentImageFilter<TInputImage, TInputImage> otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Superclass

Constructor & Destructor Documentation

◆ PersistentMatrixTransposeMatrixImageFilter() [1/2]

template<class TInputImage , class TInputImage2 >
otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::PersistentMatrixTransposeMatrixImageFilter
protected

Nulber Of Component per Pixel. Change for padding

Definition at line 35 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ ~PersistentMatrixTransposeMatrixImageFilter()

template<class TInputImage , class TInputImage2 >
otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::~PersistentMatrixTransposeMatrixImageFilter ( )
inlineoverrideprotected

Nulber Of Component per Pixel. Change for padding

Definition at line 172 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ PersistentMatrixTransposeMatrixImageFilter() [2/2]

template<class TInputImage , class TInputImage2 >
otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::PersistentMatrixTransposeMatrixImageFilter ( const Self )
privatedelete

Nulber Of Component per Pixel. Change for padding

Member Function Documentation

◆ AllocateOutputs()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::AllocateOutputs
override

Pass the input through unmodified. Do this by Grafting in the AllocateOutputs method.

Definition at line 120 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ CreateAnother()

template<class TInputImage , class TInputImage2 >
virtual::itk::LightObject::Pointer otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::CreateAnother ( void  ) const

◆ GenerateInputRequestedRegion()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GenerateInputRequestedRegion
override

Nulber Of Component per Pixel. Change for padding

Definition at line 91 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ GenerateOutputInformation()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GenerateOutputInformation
override

Nulber Of Component per Pixel. Change for padding

Definition at line 104 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ GetFirstInput()

template<class TInputImage , class TInputImage2 >
const TInputImage* otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GetFirstInput ( )
inline

Nulber Of Component per Pixel. Change for padding

Definition at line 150 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ GetNameOfClass()

template<class TInputImage , class TInputImage2 >
virtual const char* otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GetNameOfClass ( ) const
virtual

Runtime information support.

◆ GetResult()

template<class TInputImage , class TInputImage2 >
MatrixType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GetResult ( ) const
inline

Return the computed transpose(Image1)*Image2.

Definition at line 114 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ GetResultOutput() [1/2]

template<class TInputImage , class TInputImage2 >
const PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::MatrixObjectType * otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GetResultOutput

Nulber Of Component per Pixel. Change for padding

Definition at line 78 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ GetResultOutput() [2/2]

template<class TInputImage , class TInputImage2 >
const MatrixObjectType* otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GetResultOutput ( ) const

Nulber Of Component per Pixel. Change for padding

◆ GetSecondInput()

template<class TInputImage , class TInputImage2 >
const TInputImage2* otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GetSecondInput ( )
inline

Nulber Of Component per Pixel. Change for padding

Definition at line 160 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ GetUsePadFirstInput()

template<class TInputImage , class TInputImage2 >
virtual bool otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GetUsePadFirstInput ( )
virtual

◆ GetUsePadSecondInput()

template<class TInputImage , class TInputImage2 >
virtual bool otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::GetUsePadSecondInput ( )
virtual

◆ MakeOutput()

template<class TInputImage , class TInputImage2 >
itk::DataObject::Pointer otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::MakeOutput ( DataObjectPointerArraySizeType  idx)
override

Make a DataObject of the correct type to be used as the specified output.

Definition at line 60 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ New()

template<class TInputImage , class TInputImage2 >
static Pointer otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::operator= ( const Self )
privatedelete

Nulber Of Component per Pixel. Change for padding

◆ PrintSelf()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

Nulber Of Component per Pixel. Change for padding

Definition at line 263 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ Reset()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Reset ( void  )
overridevirtual

Nulber Of Component per Pixel. Change for padding

Implements otb::PersistentImageFilter< TInputImage, TInputImage >.

Definition at line 130 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ SetFirstInput()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::SetFirstInput ( const TInputImage *  input1)
inline

Input wrapper

Definition at line 140 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ SetSecondInput()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::SetSecondInput ( const TInputImage2 *  input2)
inline

Nulber Of Component per Pixel. Change for padding

Definition at line 144 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ SetUsePadFirstInput()

template<class TInputImage , class TInputImage2 >
virtual void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::SetUsePadFirstInput ( bool  _arg)
virtual

◆ SetUsePadSecondInput()

template<class TInputImage , class TInputImage2 >
virtual void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::SetUsePadSecondInput ( bool  _arg)
virtual

◆ Synthetize()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Synthetize ( void  )
overridevirtual

Synthesize the persistent data of the filter.

TODO To modify using + method operator. If we use it now -> exceptionmacro (no GetClassName...) resultMatrix += m_ThreadSum[thread];

Implements otb::PersistentImageFilter< TInputImage, TInputImage >.

Definition at line 173 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

◆ ThreadedGenerateData()

template<class TInputImage , class TInputImage2 >
void otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::ThreadedGenerateData ( const RegionType outputRegionForThread,
itk::ThreadIdType  threadId 
)
overrideprotected

Multi-thread version GenerateData.

Grab the input

Definition at line 200 of file otbStreamingMatrixTransposeMatrixImageFilter.hxx.

Member Data Documentation

◆ ImageDimension

template<class TInputImage , class TInputImage2 >
const unsigned int otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::ImageDimension = TInputImage::ImageDimension
static

Image related typedefs.

Definition at line 92 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ InputImageDimension

template<class TInputImage , class TInputImage2 >
const unsigned int otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::InputImageDimension = TInputImage::ImageDimension
static

◆ m_NumberOfComponents1

template<class TInputImage , class TInputImage2 >
unsigned int otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::m_NumberOfComponents1
private

Nulber Of Component per Pixel. Change for padding

Definition at line 188 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ m_NumberOfComponents2

template<class TInputImage , class TInputImage2 >
unsigned int otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::m_NumberOfComponents2
private

Nulber Of Component per Pixel. Change for padding

Definition at line 189 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ m_ThreadSum

template<class TInputImage , class TInputImage2 >
ArrayMatrixType otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::m_ThreadSum
private

Nulber Of Component per Pixel. Change for padding

Definition at line 183 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ m_UsePadFirstInput

template<class TInputImage , class TInputImage2 >
bool otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::m_UsePadFirstInput
private

Nulber Of Component per Pixel. Change for padding

Definition at line 184 of file otbStreamingMatrixTransposeMatrixImageFilter.h.

◆ m_UsePadSecondInput

template<class TInputImage , class TInputImage2 >
bool otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::m_UsePadSecondInput
private

Nulber Of Component per Pixel. Change for padding

Definition at line 185 of file otbStreamingMatrixTransposeMatrixImageFilter.h.


The documentation for this class was generated from the following files: