OTB  7.2.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members

#include <otbStreamingCompareImageFilter.h>

+ Inheritance diagram for otb::PersistentCompareImageFilter< TInputImage >:
+ Collaboration diagram for otb::PersistentCompareImageFilter< TInputImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef TInputImage ImageType
 
typedef TInputImage::IndexType IndexType
 
typedef TInputImage::Pointer InputImagePointer
 
typedef itk::SimpleDataObjectDecorator< PixelTypePixelObjectType
 
typedef TInputImage::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SimpleDataObjectDecorator< RealTypeRealObjectType
 
typedef itk::NumericTraits< PixelType >::RealType RealType
 
typedef TInputImage::RegionType RegionType
 
typedef PersistentCompareImageFilter 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 GetPhysicalSpaceCheck ()
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
void SetInput1 (const TInputImage *image)
 
void SetInput2 (const TInputImage *image)
 
virtual void SetPhysicalSpaceCheck (bool _arg)
 
const TInputImage * GetInput1 ()
 
const TInputImage * GetInput2 ()
 
RealType GetPSNR () const
 
RealObjectTypeGetPSNROutput ()
 
const RealObjectTypeGetPSNROutput () const
 
RealType GetMSE () const
 
RealObjectTypeGetMSEOutput ()
 
const RealObjectTypeGetMSEOutput () const
 
RealType GetMAE () const
 
RealObjectTypeGetMAEOutput ()
 
const RealObjectTypeGetMAEOutput () const
 
RealType GetDiffCount () const
 
RealObjectTypeGetDiffCountOutput ()
 
const RealObjectTypeGetDiffCountOutput () const
 
void AllocateOutputs () override
 
void GenerateOutputInformation () override
 
void Synthetize (void) override
 
void Reset (void) override
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = TInputImage::ImageDimension
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 

Protected Member Functions

 PersistentCompareImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void VerifyInputInformation () override
 
 ~PersistentCompareImageFilter () override
 
void ThreadedGenerateData (const RegionType &outputRegionForThread, itk::ThreadIdType threadId) override
 
- Protected Member Functions inherited from otb::PersistentImageFilter< TInputImage, TInputImage >
 PersistentImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~PersistentImageFilter () override
 

Private Member Functions

void operator= (const Self &)=delete
 
 PersistentCompareImageFilter (const Self &)=delete
 

Private Attributes

itk::Array< RealTypem_AbsoluteValueOfDifferences
 
itk::Array< long > m_Count
 
itk::Array< long > m_DiffCount
 
bool m_PhysicalSpaceCheck
 
itk::Array< RealTypem_SquareOfDifferences
 
itk::Array< PixelTypem_ThreadMaxRef
 
itk::Array< PixelTypem_ThreadMinRef
 

Detailed Description

template<class TInputImage>
class otb::PersistentCompareImageFilter< TInputImage >

Compute mean squared error, mean absolute error and PSNR of two imagee using the output requested region.

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

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

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

See also
PersistentImageFilter

Definition at line 51 of file otbStreamingCompareImageFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage>
typedef itk::SmartPointer<const Self> otb::PersistentCompareImageFilter< TInputImage >::ConstPointer

Definition at line 58 of file otbStreamingCompareImageFilter.h.

◆ DataObjectPointer

template<class TInputImage>
typedef itk::DataObject::Pointer otb::PersistentCompareImageFilter< TInputImage >::DataObjectPointer

Smart Pointer type to a DataObject.

Definition at line 85 of file otbStreamingCompareImageFilter.h.

◆ DataObjectPointerArraySizeType

template<class TInputImage>
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::PersistentCompareImageFilter< TInputImage >::DataObjectPointerArraySizeType

Definition at line 74 of file otbStreamingCompareImageFilter.h.

◆ ImageType

template<class TInputImage>
typedef TInputImage otb::PersistentCompareImageFilter< TInputImage >::ImageType

Image related typedefs.

Definition at line 64 of file otbStreamingCompareImageFilter.h.

◆ IndexType

template<class TInputImage>
typedef TInputImage::IndexType otb::PersistentCompareImageFilter< TInputImage >::IndexType

Definition at line 72 of file otbStreamingCompareImageFilter.h.

◆ InputImagePointer

template<class TInputImage>
typedef TInputImage::Pointer otb::PersistentCompareImageFilter< TInputImage >::InputImagePointer

Definition at line 68 of file otbStreamingCompareImageFilter.h.

◆ PixelObjectType

template<class TInputImage>
typedef itk::SimpleDataObjectDecorator<PixelType> otb::PersistentCompareImageFilter< TInputImage >::PixelObjectType

Definition at line 89 of file otbStreamingCompareImageFilter.h.

◆ PixelType

template<class TInputImage>
typedef TInputImage::PixelType otb::PersistentCompareImageFilter< TInputImage >::PixelType

Definition at line 73 of file otbStreamingCompareImageFilter.h.

◆ Pointer

template<class TInputImage>
typedef itk::SmartPointer<Self> otb::PersistentCompareImageFilter< TInputImage >::Pointer

Definition at line 57 of file otbStreamingCompareImageFilter.h.

◆ RealObjectType

template<class TInputImage>
typedef itk::SimpleDataObjectDecorator<RealType> otb::PersistentCompareImageFilter< TInputImage >::RealObjectType

Type of DataObjects used for scalar outputs

Definition at line 88 of file otbStreamingCompareImageFilter.h.

◆ RealType

template<class TInputImage>
typedef itk::NumericTraits<PixelType>::RealType otb::PersistentCompareImageFilter< TInputImage >::RealType

Type to use for computations.

Definition at line 82 of file otbStreamingCompareImageFilter.h.

◆ RegionType

template<class TInputImage>
typedef TInputImage::RegionType otb::PersistentCompareImageFilter< TInputImage >::RegionType

Definition at line 70 of file otbStreamingCompareImageFilter.h.

◆ Self

template<class TInputImage>
typedef PersistentCompareImageFilter otb::PersistentCompareImageFilter< TInputImage >::Self

Standard Self typedef

Definition at line 55 of file otbStreamingCompareImageFilter.h.

◆ SizeType

template<class TInputImage>
typedef TInputImage::SizeType otb::PersistentCompareImageFilter< TInputImage >::SizeType

Definition at line 71 of file otbStreamingCompareImageFilter.h.

◆ Superclass

template<class TInputImage>
typedef PersistentImageFilter<TInputImage, TInputImage> otb::PersistentCompareImageFilter< TInputImage >::Superclass

Definition at line 56 of file otbStreamingCompareImageFilter.h.

Constructor & Destructor Documentation

◆ PersistentCompareImageFilter() [1/2]

template<class TInputImage >
otb::PersistentCompareImageFilter< TInputImage >::PersistentCompareImageFilter ( )
protected

◆ ~PersistentCompareImageFilter()

template<class TInputImage>
otb::PersistentCompareImageFilter< TInputImage >::~PersistentCompareImageFilter ( )
inlineoverrideprotected

Definition at line 157 of file otbStreamingCompareImageFilter.h.

◆ PersistentCompareImageFilter() [2/2]

template<class TInputImage>
otb::PersistentCompareImageFilter< TInputImage >::PersistentCompareImageFilter ( const Self )
privatedelete

Member Function Documentation

◆ AllocateOutputs()

template<class TInputImage >
void otb::PersistentCompareImageFilter< TInputImage >::AllocateOutputs ( )
override

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

Definition at line 182 of file otbStreamingCompareImageFilter.hxx.

◆ CreateAnother()

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

◆ GenerateOutputInformation()

template<class TInputImage >
void otb::PersistentCompareImageFilter< TInputImage >::GenerateOutputInformation ( void  )
override

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

Definition at line 167 of file otbStreamingCompareImageFilter.hxx.

◆ GetDiffCount()

template<class TInputImage>
RealType otb::PersistentCompareImageFilter< TInputImage >::GetDiffCount ( ) const
inline

Return the Number of Pixel which are different.

Definition at line 130 of file otbStreamingCompareImageFilter.h.

Referenced by otb::PersistentCompareImageFilter< TInputImage >::PrintSelf().

◆ GetDiffCountOutput() [1/2]

template<class TInputImage >
PersistentCompareImageFilter< TInputImage >::RealObjectType * otb::PersistentCompareImageFilter< TInputImage >::GetDiffCountOutput ( )

◆ GetDiffCountOutput() [2/2]

template<class TInputImage >
const PersistentCompareImageFilter< TInputImage >::RealObjectType * otb::PersistentCompareImageFilter< TInputImage >::GetDiffCountOutput ( ) const

Return the Number of Pixel which are different.

Definition at line 161 of file otbStreamingCompareImageFilter.hxx.

◆ GetInput1()

template<class TInputImage >
const TInputImage * otb::PersistentCompareImageFilter< TInputImage >::GetInput1 ( void  )

Get the inputs

Definition at line 78 of file otbStreamingCompareImageFilter.hxx.

◆ GetInput2()

template<class TInputImage >
const TInputImage * otb::PersistentCompareImageFilter< TInputImage >::GetInput2 ( void  )

Get the inputs

Definition at line 88 of file otbStreamingCompareImageFilter.hxx.

◆ GetMAE()

template<class TInputImage>
RealType otb::PersistentCompareImageFilter< TInputImage >::GetMAE ( ) const
inline

Return the computed MAE.

Definition at line 121 of file otbStreamingCompareImageFilter.h.

Referenced by otb::PersistentCompareImageFilter< TInputImage >::PrintSelf().

◆ GetMAEOutput() [1/2]

template<class TInputImage >
PersistentCompareImageFilter< TInputImage >::RealObjectType * otb::PersistentCompareImageFilter< TInputImage >::GetMAEOutput ( )

◆ GetMAEOutput() [2/2]

template<class TInputImage >
const PersistentCompareImageFilter< TInputImage >::RealObjectType * otb::PersistentCompareImageFilter< TInputImage >::GetMAEOutput ( ) const

Return the computed MAE.

Definition at line 149 of file otbStreamingCompareImageFilter.hxx.

◆ GetMSE()

template<class TInputImage>
RealType otb::PersistentCompareImageFilter< TInputImage >::GetMSE ( ) const
inline

Return the computed MSE.

Definition at line 112 of file otbStreamingCompareImageFilter.h.

Referenced by otb::PersistentCompareImageFilter< TInputImage >::PrintSelf().

◆ GetMSEOutput() [1/2]

template<class TInputImage >
PersistentCompareImageFilter< TInputImage >::RealObjectType * otb::PersistentCompareImageFilter< TInputImage >::GetMSEOutput ( )

◆ GetMSEOutput() [2/2]

template<class TInputImage >
const PersistentCompareImageFilter< TInputImage >::RealObjectType * otb::PersistentCompareImageFilter< TInputImage >::GetMSEOutput ( ) const

Return the computed MSE.

Definition at line 137 of file otbStreamingCompareImageFilter.hxx.

◆ GetNameOfClass()

template<class TInputImage>
virtual const char* otb::PersistentCompareImageFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Runtime information support.

Reimplemented from otb::PersistentImageFilter< TInputImage, TInputImage >.

◆ GetPhysicalSpaceCheck()

template<class TInputImage>
virtual bool otb::PersistentCompareImageFilter< TInputImage >::GetPhysicalSpaceCheck ( )
virtual

◆ GetPSNR()

template<class TInputImage>
RealType otb::PersistentCompareImageFilter< TInputImage >::GetPSNR ( ) const
inline

Return the computed PSNR.

Definition at line 103 of file otbStreamingCompareImageFilter.h.

Referenced by otb::PersistentCompareImageFilter< TInputImage >::PrintSelf().

◆ GetPSNROutput() [1/2]

template<class TInputImage >
PersistentCompareImageFilter< TInputImage >::RealObjectType * otb::PersistentCompareImageFilter< TInputImage >::GetPSNROutput ( )

◆ GetPSNROutput() [2/2]

template<class TInputImage >
const PersistentCompareImageFilter< TInputImage >::RealObjectType * otb::PersistentCompareImageFilter< TInputImage >::GetPSNROutput ( ) const

Return the computed PSNR.

Definition at line 125 of file otbStreamingCompareImageFilter.hxx.

◆ MakeOutput()

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

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

Definition at line 98 of file otbStreamingCompareImageFilter.hxx.

Referenced by otb::PersistentCompareImageFilter< TInputImage >::PersistentCompareImageFilter().

◆ New()

template<class TInputImage>
static Pointer otb::PersistentCompareImageFilter< TInputImage >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TInputImage>
void otb::PersistentCompareImageFilter< TInputImage >::operator= ( const Self )
privatedelete

◆ PrintSelf()

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

◆ Reset()

template<class TInputImage >
void otb::PersistentCompareImageFilter< TInputImage >::Reset ( void  )
overridevirtual

◆ SetInput1()

template<class TInputImage >
void otb::PersistentCompareImageFilter< TInputImage >::SetInput1 ( const TInputImage *  image)

Connect one the first operands.

Connect one of the first operand

Definition at line 61 of file otbStreamingCompareImageFilter.hxx.

◆ SetInput2()

template<class TInputImage >
void otb::PersistentCompareImageFilter< TInputImage >::SetInput2 ( const TInputImage *  image)

Connect one the second operands.

Connect one of the second operand

Definition at line 71 of file otbStreamingCompareImageFilter.hxx.

◆ SetPhysicalSpaceCheck()

template<class TInputImage>
virtual void otb::PersistentCompareImageFilter< TInputImage >::SetPhysicalSpaceCheck ( bool  _arg)
virtual

◆ Synthetize()

template<class TInputImage >
void otb::PersistentCompareImageFilter< TInputImage >::Synthetize ( void  )
overridevirtual

◆ ThreadedGenerateData()

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

◆ VerifyInputInformation()

template<class TInputImage >
void otb::PersistentCompareImageFilter< TInputImage >::VerifyInputInformation ( )
overrideprotected

Allows skipping the verification of physical space between the two input images (see flag m_PhysicalSpaceCheck)

Definition at line 271 of file otbStreamingCompareImageFilter.hxx.

References otb::PersistentCompareImageFilter< TInputImage >::m_PhysicalSpaceCheck.

Member Data Documentation

◆ ImageDimension

template<class TInputImage>
const unsigned int otb::PersistentCompareImageFilter< TInputImage >::ImageDimension = TInputImage::ImageDimension
static

Image related typedefs.

Definition at line 79 of file otbStreamingCompareImageFilter.h.

◆ InputImageDimension

template<class TInputImage>
const unsigned int otb::PersistentCompareImageFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension
static

Definition at line 76 of file otbStreamingCompareImageFilter.h.

◆ m_AbsoluteValueOfDifferences

template<class TInputImage>
itk::Array<RealType> otb::PersistentCompareImageFilter< TInputImage >::m_AbsoluteValueOfDifferences
private

◆ m_Count

template<class TInputImage>
itk::Array<long> otb::PersistentCompareImageFilter< TInputImage >::m_Count
private

◆ m_DiffCount

template<class TInputImage>
itk::Array<long> otb::PersistentCompareImageFilter< TInputImage >::m_DiffCount
private

◆ m_PhysicalSpaceCheck

template<class TInputImage>
bool otb::PersistentCompareImageFilter< TInputImage >::m_PhysicalSpaceCheck
private

◆ m_SquareOfDifferences

template<class TInputImage>
itk::Array<RealType> otb::PersistentCompareImageFilter< TInputImage >::m_SquareOfDifferences
private

◆ m_ThreadMaxRef

template<class TInputImage>
itk::Array<PixelType> otb::PersistentCompareImageFilter< TInputImage >::m_ThreadMaxRef
private

◆ m_ThreadMinRef

template<class TInputImage>
itk::Array<PixelType> otb::PersistentCompareImageFilter< TInputImage >::m_ThreadMinRef
private

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