Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::PersistentMinMaxVectorImageFilter< TInputImage > Class Template Reference

Compute min. max of a large image using streaming. More...

#include <otbStreamingMinMaxVectorImageFilter.h>

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

Public Types

typedef itk::Array< long > ArrayLongPixelType
 
typedef std::vector< MatrixTypeArrayMatrixType
 
typedef std::vector< PixelTypeArrayPixelType
 
typedef std::vector
< RealPixelType
ArrayRealPixelType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef TInputImage ImageType
 
typedef TInputImage::IndexType IndexType
 
typedef TInputImage::Pointer InputImagePointer
 
typedef
TInputImage::InternalPixelType 
InternalPixelType
 
typedef
itk::SimpleDataObjectDecorator
< MatrixType
MatrixObjectType
 
typedef
itk::VariableSizeMatrix
< RealType
MatrixType
 
typedef
itk::SimpleDataObjectDecorator
< PixelType
PixelObjectType
 
typedef TInputImage::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
itk::SimpleDataObjectDecorator
< RealPixelType
RealPixelObjectType
 
typedef
itk::VariableLengthVector
< RealType
RealPixelType
 
typedef itk::NumericTraits
< InternalPixelType >
::RealType 
RealType
 
typedef TInputImage::RegionType RegionType
 
typedef
PersistentMinMaxVectorImageFilter 
Self
 
typedef TInputImage::SizeType SizeType
 
typedef PersistentImageFilter
< TInputImage, TInputImage > 
Superclass
 
- Public Types inherited from otb::PersistentImageFilter< TInputImage, TInputImage >
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef TInputImage InputImageType
 
typedef TInputImage OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef PersistentImageFilter Self
 
typedef
itk::ImageToImageFilter
< TInputImage, TInputImage > 
Superclass
 

Public Member Functions

virtual void AllocateOutputs ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual void GenerateOutputInformation ()
 
PixelType GetMaximum () const
 
PixelObjectTypeGetMaximumOutput ()
 
const PixelObjectTypeGetMaximumOutput () const
 
PixelType GetMinimum () const
 
PixelObjectTypeGetMinimumOutput ()
 
const PixelObjectTypeGetMinimumOutput () const
 
virtual const char * GetNameOfClass () const
 
virtual bool GetNoDataFlag ()
 
virtual const InternalPixelTypeGetNoDataValue ()
 
virtual DataObjectPointer MakeOutput (unsigned int idx)
 
virtual void NoDataFlagOff ()
 
virtual void NoDataFlagOn ()
 
virtual void Reset (void)
 
virtual void SetNoDataFlag (bool _arg)
 
virtual void SetNoDataValue (InternalPixelType _arg)
 
virtual void Synthetize (void)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageSource< TOutputImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter (void)
 

Static Public Attributes

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

Protected Member Functions

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

Private Member Functions

 PersistentMinMaxVectorImageFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

bool m_NoDataFlag
 
InternalPixelType m_NoDataValue
 
ArrayPixelType m_ThreadMax
 
ArrayPixelType m_ThreadMin
 

Detailed Description

template<class TInputImage>
class otb::PersistentMinMaxVectorImageFilter< TInputImage >

Compute min. max of a large image using streaming.

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 statitics of 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
PersistentImageFilter

Definition at line 53 of file otbStreamingMinMaxVectorImageFilter.h.

Member Typedef Documentation

template<class TInputImage >
typedef itk::Array<long> otb::PersistentMinMaxVectorImageFilter< TInputImage >::ArrayLongPixelType

Definition at line 93 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
typedef std::vector<MatrixType> otb::PersistentMinMaxVectorImageFilter< TInputImage >::ArrayMatrixType

Definition at line 92 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
typedef std::vector<PixelType> otb::PersistentMinMaxVectorImageFilter< TInputImage >::ArrayPixelType

Definition at line 95 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
typedef std::vector<RealPixelType> otb::PersistentMinMaxVectorImageFilter< TInputImage >::ArrayRealPixelType

Definition at line 94 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 61 of file otbStreamingMinMaxVectorImageFilter.h.

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

Smart Pointer type to a DataObject.

Definition at line 88 of file otbStreamingMinMaxVectorImageFilter.h.

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

Image related typedefs.

Definition at line 67 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 74 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 71 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
typedef TInputImage::InternalPixelType otb::PersistentMinMaxVectorImageFilter< TInputImage >::InternalPixelType

Definition at line 76 of file otbStreamingMinMaxVectorImageFilter.h.

Definition at line 98 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
typedef itk::VariableSizeMatrix<RealType> otb::PersistentMinMaxVectorImageFilter< TInputImage >::MatrixType

Type of DataObjects used for scalar outputs

Definition at line 91 of file otbStreamingMinMaxVectorImageFilter.h.

Definition at line 97 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 75 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 60 of file otbStreamingMinMaxVectorImageFilter.h.

Definition at line 96 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
typedef itk::VariableLengthVector<RealType> otb::PersistentMinMaxVectorImageFilter< TInputImage >::RealPixelType

Definition at line 85 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
typedef itk::NumericTraits<InternalPixelType>::RealType otb::PersistentMinMaxVectorImageFilter< TInputImage >::RealType

Type to use for computations.

Definition at line 84 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 72 of file otbStreamingMinMaxVectorImageFilter.h.

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

Standard Self typedef

Definition at line 58 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 73 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 59 of file otbStreamingMinMaxVectorImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImage >
otb::PersistentMinMaxVectorImageFilter< TInputImage >::PersistentMinMaxVectorImageFilter ( )
protected
template<class TInputImage >
virtual otb::PersistentMinMaxVectorImageFilter< TInputImage >::~PersistentMinMaxVectorImageFilter ( )
inlineprotectedvirtual

Definition at line 157 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
otb::PersistentMinMaxVectorImageFilter< TInputImage >::PersistentMinMaxVectorImageFilter ( const Self )
private

Member Function Documentation

template<class TInputImage >
void otb::PersistentMinMaxVectorImageFilter< TInputImage >::AllocateOutputs ( )
virtual

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

Definition at line 125 of file otbStreamingMinMaxVectorImageFilter.txx.

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

Definition at line 107 of file otbStreamingMinMaxVectorImageFilter.txx.

template<class TInputImage >
PixelType otb::PersistentMinMaxVectorImageFilter< TInputImage >::GetMaximum ( ) const
inline

Return the computed Maximum.

Definition at line 135 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
PersistentMinMaxVectorImageFilter< TInputImage >::PixelObjectType * otb::PersistentMinMaxVectorImageFilter< TInputImage >::GetMaximumOutput ( )

Definition at line 91 of file otbStreamingMinMaxVectorImageFilter.txx.

template<class TInputImage >
const PersistentMinMaxVectorImageFilter< TInputImage >::PixelObjectType * otb::PersistentMinMaxVectorImageFilter< TInputImage >::GetMaximumOutput ( ) const

Definition at line 99 of file otbStreamingMinMaxVectorImageFilter.txx.

template<class TInputImage >
PixelType otb::PersistentMinMaxVectorImageFilter< TInputImage >::GetMinimum ( ) const
inline

Return the computed Minimum.

Definition at line 127 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
PersistentMinMaxVectorImageFilter< TInputImage >::PixelObjectType * otb::PersistentMinMaxVectorImageFilter< TInputImage >::GetMinimumOutput ( )

Definition at line 75 of file otbStreamingMinMaxVectorImageFilter.txx.

template<class TInputImage >
const PersistentMinMaxVectorImageFilter< TInputImage >::PixelObjectType * otb::PersistentMinMaxVectorImageFilter< TInputImage >::GetMinimumOutput ( ) const

Definition at line 83 of file otbStreamingMinMaxVectorImageFilter.txx.

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

Runtime information support.

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

template<class TInputImage >
virtual bool otb::PersistentMinMaxVectorImageFilter< TInputImage >::GetNoDataFlag ( )
virtual

Get the NoDataFlag. If set to true, samples with values equal to m_NoDataValue are ignored.

template<class TInputImage >
virtual const InternalPixelType& otb::PersistentMinMaxVectorImageFilter< TInputImage >::GetNoDataValue ( )
virtual

Set the no data value. These value are ignored in histogram computation if NoDataFlag is On

template<class TInputImage >
itk::DataObject::Pointer otb::PersistentMinMaxVectorImageFilter< TInputImage >::MakeOutput ( unsigned int  idx)
virtual

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

Definition at line 56 of file otbStreamingMinMaxVectorImageFilter.txx.

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

Method for creation through the object factory.

template<class TInputImage >
virtual void otb::PersistentMinMaxVectorImageFilter< TInputImage >::NoDataFlagOff ( )
virtual
template<class TInputImage >
virtual void otb::PersistentMinMaxVectorImageFilter< TInputImage >::NoDataFlagOn ( )
virtual

Toggle the NoDataFlag. If set to true, samples with values equal to m_NoDataValue are ignored.

template<class TInputImage >
void otb::PersistentMinMaxVectorImageFilter< TInputImage >::operator= ( const Self )
private
template<class TImage >
void otb::PersistentMinMaxVectorImageFilter< TImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protectedvirtual

PrintSelf method

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

Definition at line 248 of file otbStreamingMinMaxVectorImageFilter.txx.

template<class TInputImage >
void otb::PersistentMinMaxVectorImageFilter< TInputImage >::Reset ( void  )
virtual

Reset the persistent data of the filter.

Implements otb::PersistentImageFilter< TInputImage, TInputImage >.

Definition at line 137 of file otbStreamingMinMaxVectorImageFilter.txx.

template<class TInputImage >
virtual void otb::PersistentMinMaxVectorImageFilter< TInputImage >::SetNoDataFlag ( bool  _arg)
virtual

Set the NoDataFlag. If set to true, samples with values equal to m_NoDataValue are ignored.

template<class TInputImage >
virtual void otb::PersistentMinMaxVectorImageFilter< TInputImage >::SetNoDataValue ( InternalPixelType  _arg)
virtual

Set the no data value. These value are ignored in histogram computation if NoDataFlag is On

template<class TInputImage >
void otb::PersistentMinMaxVectorImageFilter< TInputImage >::Synthetize ( void  )
virtual

Synthesize the persistent data of the filter.

Implements otb::PersistentImageFilter< TInputImage, TInputImage >.

Definition at line 167 of file otbStreamingMinMaxVectorImageFilter.txx.

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

Multi-thread version GenerateData.

Grab the input

Definition at line 207 of file otbStreamingMinMaxVectorImageFilter.txx.

Member Data Documentation

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

Image related typedefs.

Definition at line 81 of file otbStreamingMinMaxVectorImageFilter.h.

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

Definition at line 78 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
bool otb::PersistentMinMaxVectorImageFilter< TInputImage >::m_NoDataFlag
private

Definition at line 168 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
InternalPixelType otb::PersistentMinMaxVectorImageFilter< TInputImage >::m_NoDataValue
private

Definition at line 169 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
ArrayPixelType otb::PersistentMinMaxVectorImageFilter< TInputImage >::m_ThreadMax
private

Definition at line 167 of file otbStreamingMinMaxVectorImageFilter.h.

template<class TInputImage >
ArrayPixelType otb::PersistentMinMaxVectorImageFilter< TInputImage >::m_ThreadMin
private

Definition at line 166 of file otbStreamingMinMaxVectorImageFilter.h.


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