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
otb::VectorImage< TPixel, VImageDimension > Class Template Reference

#include <otbVectorImage.h>

+ Inheritance diagram for otb::VectorImage< TPixel, VImageDimension >:
+ Collaboration diagram for otb::VectorImage< TPixel, VImageDimension >:

Public Types

typedef itk::DefaultVectorPixelAccessorFunctor< SelfAccessorFunctorType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::WeakPointer< const SelfConstWeakPointer
 
typedef Superclass::DirectionType DirectionType
 
typedef ImageMetadataInterfaceBase::ImageKeywordlistType ImageKeywordlistType
 
typedef ImageMetadataInterfaceBase::Pointer ImageMetadataInterfacePointerType
 
typedef Superclass::IndexType IndexType
 
typedef Superclass::InternalPixelType InternalPixelType
 
typedef Superclass::IOPixelType IOPixelType
 
typedef itk::VectorImageNeighborhoodAccessorFunctor< SelfNeighborhoodAccessorFunctorType
 
typedef Superclass::OffsetType OffsetType
 
typedef Superclass::PixelContainer PixelContainer
 
typedef Superclass::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef Superclass::RegionType RegionType
 
typedef VectorImage Self
 
typedef Superclass::SizeType SizeType
 
typedef Superclass::SpacingType SpacingType
 
typedef itk::VectorImage< TPixel, VImageDimension > Superclass
 
typedef Superclass::ValueType ValueType
 
typedef ImageMetadataInterfaceBase::VectorType VectorType
 

Public Member Functions

void CopyInformation (const itk::DataObject *) override
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual double GetGCPCol (unsigned int GCPnum) const
 
virtual unsigned int GetGCPCount (void) const
 
virtual std::string GetGCPId (unsigned int GCPnum) const
 
virtual std::string GetGCPInfo (unsigned int GCPnum) const
 
virtual std::string GetGCPProjection (void) const
 
virtual double GetGCPRow (unsigned int GCPnum) const
 
virtual OTB_GCPGetGCPs (unsigned int GCPnum)
 
virtual const OTB_GCPGetGCPs (unsigned int GCPnum) const
 
virtual double GetGCPX (unsigned int GCPnum) const
 
virtual double GetGCPY (unsigned int GCPnum) const
 
virtual double GetGCPZ (unsigned int GCPnum) const
 
virtual VectorType GetGeoTransform (void) const
 
virtual const char * GetNameOfClass () const
 
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor ()
 
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor () const
 
virtual std::string GetProjectionRef (void) const
 
SpacingType GetSignedSpacing () const
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual void SetImageKeywordList (const ImageKeywordlistType &kwl)
 
virtual void SetProjectionRef (const std::string &wkt)
 
virtual void SetSignedSpacing (SpacingType spacing)
 
virtual void SetSignedSpacing (double spacing[VImageDimension])
 
virtual VectorType GetUpperLeftCorner (void) const
 
virtual VectorType GetUpperRightCorner (void) const
 
virtual VectorType GetLowerLeftCorner (void) const
 
virtual VectorType GetLowerRightCorner (void) const
 
virtual ImageKeywordlistType GetImageKeywordlist (void)
 
virtual const ImageKeywordlistType GetImageKeywordlist (void) const
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = VImageDimension
 

Protected Member Functions

 VectorImage ()
 
 ~VectorImage () override
 

Private Member Functions

ImageMetadataInterfacePointerType GetMetaDataInterface () const
 
void operator= (const Self &)=delete
 
 VectorImage (const Self &)=delete
 

Private Attributes

ImageMetadataInterfacePointerType m_ImageMetadataInterface
 

Detailed Description

template<class TPixel, unsigned int VImageDimension = 2>
class otb::VectorImage< TPixel, VImageDimension >

Creation of an "otb" vector image which contains metadata.

Examples:
FeatureExtraction/CloudDetectionExample.cxx, Fusion/BayesianFusionImageFilter.cxx, Fusion/PanSharpeningExample.cxx, and Radiometry/AtmosphericCorrectionSequencement.cxx.

Definition at line 44 of file otbVectorImage.h.

Member Typedef Documentation

◆ AccessorFunctorType

template<class TPixel, unsigned int VImageDimension = 2>
typedef itk::DefaultVectorPixelAccessorFunctor<Self> otb::VectorImage< TPixel, VImageDimension >::AccessorFunctorType

Accessor type that convert data between internal and external representations. Functor to provide a common API between DefaultPixelAccessor and DefaultVectorPixelAccessor

Definition at line 85 of file otbVectorImage.h.

◆ ConstPointer

template<class TPixel, unsigned int VImageDimension = 2>
typedef itk::SmartPointer<const Self> otb::VectorImage< TPixel, VImageDimension >::ConstPointer

Definition at line 51 of file otbVectorImage.h.

◆ ConstWeakPointer

template<class TPixel, unsigned int VImageDimension = 2>
typedef itk::WeakPointer<const Self> otb::VectorImage< TPixel, VImageDimension >::ConstWeakPointer

Definition at line 52 of file otbVectorImage.h.

◆ DirectionType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::DirectionType otb::VectorImage< TPixel, VImageDimension >::DirectionType

Direction typedef support. A matrix of direction cosines.

Definition at line 109 of file otbVectorImage.h.

◆ ImageKeywordlistType

template<class TPixel, unsigned int VImageDimension = 2>
typedef ImageMetadataInterfaceBase::ImageKeywordlistType otb::VectorImage< TPixel, VImageDimension >::ImageKeywordlistType

Definition at line 55 of file otbVectorImage.h.

◆ ImageMetadataInterfacePointerType

template<class TPixel, unsigned int VImageDimension = 2>
typedef ImageMetadataInterfaceBase::Pointer otb::VectorImage< TPixel, VImageDimension >::ImageMetadataInterfacePointerType

Definition at line 56 of file otbVectorImage.h.

◆ IndexType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::IndexType otb::VectorImage< TPixel, VImageDimension >::IndexType

Index typedef support. An index is used to access pixel values.

Definition at line 100 of file otbVectorImage.h.

◆ InternalPixelType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::InternalPixelType otb::VectorImage< TPixel, VImageDimension >::InternalPixelType

Internal Pixel representation. Used to maintain a uniform API with Image Adaptors and allow keeping a particular internal representation of data while showing a different external representation.

Definition at line 75 of file otbVectorImage.h.

◆ IOPixelType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::IOPixelType otb::VectorImage< TPixel, VImageDimension >::IOPixelType

Definition at line 77 of file otbVectorImage.h.

◆ NeighborhoodAccessorFunctorType

template<class TPixel, unsigned int VImageDimension = 2>
typedef itk::VectorImageNeighborhoodAccessorFunctor<Self> otb::VectorImage< TPixel, VImageDimension >::NeighborhoodAccessorFunctorType

Tyepdef for the functor used to access a neighborhood of pixel pointers.

Definition at line 88 of file otbVectorImage.h.

◆ OffsetType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::OffsetType otb::VectorImage< TPixel, VImageDimension >::OffsetType

Offset typedef support. An offset is used to access pixel values.

Definition at line 103 of file otbVectorImage.h.

◆ PixelContainer

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::PixelContainer otb::VectorImage< TPixel, VImageDimension >::PixelContainer

Container used to store pixels in the image.

Definition at line 97 of file otbVectorImage.h.

◆ PixelType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::PixelType otb::VectorImage< TPixel, VImageDimension >::PixelType

Pixel typedef support. Used to declare pixel type in filters or other operations.

Definition at line 62 of file otbVectorImage.h.

◆ Pointer

template<class TPixel, unsigned int VImageDimension = 2>
typedef itk::SmartPointer<Self> otb::VectorImage< TPixel, VImageDimension >::Pointer

Definition at line 50 of file otbVectorImage.h.

◆ PointType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::PointType otb::VectorImage< TPixel, VImageDimension >::PointType

Origin typedef support. The origin is the geometric coordinates of the index (0, 0).

Definition at line 120 of file otbVectorImage.h.

◆ RegionType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::RegionType otb::VectorImage< TPixel, VImageDimension >::RegionType

Region typedef support. A region is used to specify a subset of an image.

Definition at line 112 of file otbVectorImage.h.

◆ Self

template<class TPixel, unsigned int VImageDimension = 2>
typedef VectorImage otb::VectorImage< TPixel, VImageDimension >::Self

Standard class typedefs.

Definition at line 48 of file otbVectorImage.h.

◆ SizeType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::SizeType otb::VectorImage< TPixel, VImageDimension >::SizeType

Size typedef support. A size is used to define region bounds.

Definition at line 106 of file otbVectorImage.h.

◆ SpacingType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::SpacingType otb::VectorImage< TPixel, VImageDimension >::SpacingType

Spacing typedef support. Spacing holds the size of a pixel. The spacing is the geometric distance between image samples.

Definition at line 116 of file otbVectorImage.h.

◆ Superclass

template<class TPixel, unsigned int VImageDimension = 2>
typedef itk::VectorImage<TPixel, VImageDimension> otb::VectorImage< TPixel, VImageDimension >::Superclass

Definition at line 49 of file otbVectorImage.h.

◆ ValueType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::ValueType otb::VectorImage< TPixel, VImageDimension >::ValueType

Typedef alias for PixelType

Definition at line 69 of file otbVectorImage.h.

◆ VectorType

template<class TPixel, unsigned int VImageDimension = 2>
typedef ImageMetadataInterfaceBase::VectorType otb::VectorImage< TPixel, VImageDimension >::VectorType

Definition at line 54 of file otbVectorImage.h.

Constructor & Destructor Documentation

◆ VectorImage() [1/2]

template<class TPixel , unsigned int VImageDimension>
otb::VectorImage< TPixel, VImageDimension >::VectorImage ( )
protected

Definition at line 34 of file otbVectorImage.hxx.

◆ ~VectorImage()

template<class TPixel, unsigned int VImageDimension = 2>
otb::VectorImage< TPixel, VImageDimension >::~VectorImage ( )
inlineoverrideprotected

Definition at line 199 of file otbVectorImage.h.

◆ VectorImage() [2/2]

template<class TPixel, unsigned int VImageDimension = 2>
otb::VectorImage< TPixel, VImageDimension >::VectorImage ( const Self )
privatedelete

Member Function Documentation

◆ CopyInformation()

template<class TPixel , unsigned int VImageDimension>
void otb::VectorImage< TPixel, VImageDimension >::CopyInformation ( const itk::DataObject *  data)
override

Copy metadata from a DataObject.

Definition at line 215 of file otbVectorImage.hxx.

◆ CreateAnother()

template<class TPixel, unsigned int VImageDimension = 2>
virtual::itk::LightObject::Pointer otb::VectorImage< TPixel, VImageDimension >::CreateAnother ( void  ) const

◆ GetGCPCol()

template<class TPixel , unsigned int VImageDimension>
double otb::VectorImage< TPixel, VImageDimension >::GetGCPCol ( unsigned int  GCPnum) const
virtual

Definition at line 94 of file otbVectorImage.hxx.

◆ GetGCPCount()

template<class TPixel , unsigned int VImageDimension>
unsigned int otb::VectorImage< TPixel, VImageDimension >::GetGCPCount ( void  ) const
virtual

Definition at line 58 of file otbVectorImage.hxx.

◆ GetGCPId()

template<class TPixel , unsigned int VImageDimension>
std::string otb::VectorImage< TPixel, VImageDimension >::GetGCPId ( unsigned int  GCPnum) const
virtual

Definition at line 76 of file otbVectorImage.hxx.

◆ GetGCPInfo()

template<class TPixel , unsigned int VImageDimension>
std::string otb::VectorImage< TPixel, VImageDimension >::GetGCPInfo ( unsigned int  GCPnum) const
virtual

Definition at line 82 of file otbVectorImage.hxx.

◆ GetGCPProjection()

template<class TPixel , unsigned int VImageDimension>
std::string otb::VectorImage< TPixel, VImageDimension >::GetGCPProjection ( void  ) const
virtual

Get the GCP projection coordinates of the image.

Definition at line 52 of file otbVectorImage.hxx.

◆ GetGCPRow()

template<class TPixel , unsigned int VImageDimension>
double otb::VectorImage< TPixel, VImageDimension >::GetGCPRow ( unsigned int  GCPnum) const
virtual

Definition at line 88 of file otbVectorImage.hxx.

◆ GetGCPs() [1/2]

template<class TPixel , unsigned int VImageDimension>
OTB_GCP & otb::VectorImage< TPixel, VImageDimension >::GetGCPs ( unsigned int  GCPnum)
virtual

Definition at line 64 of file otbVectorImage.hxx.

◆ GetGCPs() [2/2]

template<class TPixel , unsigned int VImageDimension>
const OTB_GCP & otb::VectorImage< TPixel, VImageDimension >::GetGCPs ( unsigned int  GCPnum) const
virtual

Definition at line 70 of file otbVectorImage.hxx.

◆ GetGCPX()

template<class TPixel , unsigned int VImageDimension>
double otb::VectorImage< TPixel, VImageDimension >::GetGCPX ( unsigned int  GCPnum) const
virtual

Definition at line 100 of file otbVectorImage.hxx.

◆ GetGCPY()

template<class TPixel , unsigned int VImageDimension>
double otb::VectorImage< TPixel, VImageDimension >::GetGCPY ( unsigned int  GCPnum) const
virtual

Definition at line 106 of file otbVectorImage.hxx.

◆ GetGCPZ()

template<class TPixel , unsigned int VImageDimension>
double otb::VectorImage< TPixel, VImageDimension >::GetGCPZ ( unsigned int  GCPnum) const
virtual

Definition at line 112 of file otbVectorImage.hxx.

◆ GetGeoTransform()

template<class TPixel , unsigned int VImageDimension>
VectorImage< TPixel, VImageDimension >::VectorType otb::VectorImage< TPixel, VImageDimension >::GetGeoTransform ( void  ) const
virtual

Get the six coefficients of affine geoTtransform.

Definition at line 118 of file otbVectorImage.hxx.

◆ GetImageKeywordlist() [1/2]

template<class TPixel , unsigned int VImageDimension>
VectorImage< TPixel, VImageDimension >::ImageKeywordlistType otb::VectorImage< TPixel, VImageDimension >::GetImageKeywordlist ( void  )
virtual

Get image keyword list

Definition at line 190 of file otbVectorImage.hxx.

◆ GetImageKeywordlist() [2/2]

template<class TPixel , unsigned int VImageDimension>
const VectorImage< TPixel, VImageDimension >::ImageKeywordlistType otb::VectorImage< TPixel, VImageDimension >::GetImageKeywordlist ( void  ) const
virtual

Get image keyword list

Definition at line 199 of file otbVectorImage.hxx.

◆ GetLowerLeftCorner()

template<class TPixel , unsigned int VImageDimension>
VectorImage< TPixel, VImageDimension >::VectorType otb::VectorImage< TPixel, VImageDimension >::GetLowerLeftCorner ( void  ) const
virtual

Get image corners.

Definition at line 136 of file otbVectorImage.hxx.

◆ GetLowerRightCorner()

template<class TPixel , unsigned int VImageDimension>
VectorImage< TPixel, VImageDimension >::VectorType otb::VectorImage< TPixel, VImageDimension >::GetLowerRightCorner ( void  ) const
virtual

Get image corners.

Definition at line 142 of file otbVectorImage.hxx.

◆ GetMetaDataInterface()

template<class TPixel , unsigned int VImageDimension>
VectorImage< TPixel, VImageDimension >::ImageMetadataInterfacePointerType otb::VectorImage< TPixel, VImageDimension >::GetMetaDataInterface ( ) const
private

Return the ImageMetadataInterfacePointer associated to the data and creates it on first call

Definition at line 222 of file otbVectorImage.hxx.

◆ GetNameOfClass()

template<class TPixel, unsigned int VImageDimension = 2>
virtual const char* otb::VectorImage< TPixel, VImageDimension >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetNeighborhoodAccessor() [1/2]

template<class TPixel, unsigned int VImageDimension = 2>
NeighborhoodAccessorFunctorType otb::VectorImage< TPixel, VImageDimension >::GetNeighborhoodAccessor ( )
inline

Return the Pixel Accessor object Return the Pixel Accesor object Return the NeighborhoodAccessor functor

Definition at line 186 of file otbVectorImage.h.

◆ GetNeighborhoodAccessor() [2/2]

template<class TPixel, unsigned int VImageDimension = 2>
const NeighborhoodAccessorFunctorType otb::VectorImage< TPixel, VImageDimension >::GetNeighborhoodAccessor ( ) const
inline

Return the NeighborhoodAccessor functor

Definition at line 192 of file otbVectorImage.h.

◆ GetProjectionRef()

template<class TPixel , unsigned int VImageDimension>
std::string otb::VectorImage< TPixel, VImageDimension >::GetProjectionRef ( void  ) const
virtual

Get the projection coordinate system of the image.

Definition at line 39 of file otbVectorImage.hxx.

◆ GetSignedSpacing()

template<class TPixel , unsigned int VImageDimension>
VectorImage< TPixel, VImageDimension >::SpacingType otb::VectorImage< TPixel, VImageDimension >::GetSignedSpacing ( ) const

Get signed spacing

Definition at line 148 of file otbVectorImage.hxx.

◆ GetUpperLeftCorner()

template<class TPixel , unsigned int VImageDimension>
VectorImage< TPixel, VImageDimension >::VectorType otb::VectorImage< TPixel, VImageDimension >::GetUpperLeftCorner ( void  ) const
virtual

Get image corners.

Definition at line 124 of file otbVectorImage.hxx.

◆ GetUpperRightCorner()

template<class TPixel , unsigned int VImageDimension>
VectorImage< TPixel, VImageDimension >::VectorType otb::VectorImage< TPixel, VImageDimension >::GetUpperRightCorner ( void  ) const
virtual

Get image corners.

Definition at line 130 of file otbVectorImage.hxx.

◆ New()

template<class TPixel, unsigned int VImageDimension = 2>
static Pointer otb::VectorImage< TPixel, VImageDimension >::New ( )
static

◆ operator=()

template<class TPixel, unsigned int VImageDimension = 2>
void otb::VectorImage< TPixel, VImageDimension >::operator= ( const Self )
privatedelete

◆ PrintSelf()

template<class TPixel , unsigned int VImageDimension>
void otb::VectorImage< TPixel, VImageDimension >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
override

Definition at line 230 of file otbVectorImage.hxx.

◆ SetImageKeywordList()

template<class TPixel , unsigned int VImageDimension>
void otb::VectorImage< TPixel, VImageDimension >::SetImageKeywordList ( const ImageKeywordlistType kwl)
virtual

Definition at line 208 of file otbVectorImage.hxx.

◆ SetProjectionRef()

template<class TPixel , unsigned int VImageDimension>
void otb::VectorImage< TPixel, VImageDimension >::SetProjectionRef ( const std::string &  wkt)
virtual

Definition at line 45 of file otbVectorImage.hxx.

◆ SetSignedSpacing() [1/2]

template<class TPixel , unsigned int VImageDimension>
void otb::VectorImage< TPixel, VImageDimension >::SetSignedSpacing ( SpacingType  spacing)
virtual

Set signed spacing

Definition at line 160 of file otbVectorImage.hxx.

◆ SetSignedSpacing() [2/2]

template<class TPixel , unsigned int VImageDimension>
void otb::VectorImage< TPixel, VImageDimension >::SetSignedSpacing ( double  spacing[VImageDimension])
virtual

Set signed spacing

Definition at line 183 of file otbVectorImage.hxx.

Member Data Documentation

◆ ImageDimension

template<class TPixel, unsigned int VImageDimension = 2>
const unsigned int otb::VectorImage< TPixel, VImageDimension >::ImageDimension = VImageDimension
static

Dimension of the image. This constant is used by functions that are templated over image type (as opposed to being templated over pixel type and dimension) when they need compile time access to the dimension of the image.

Definition at line 94 of file otbVectorImage.h.

◆ m_ImageMetadataInterface

template<class TPixel, unsigned int VImageDimension = 2>
ImageMetadataInterfacePointerType otb::VectorImage< TPixel, VImageDimension >::m_ImageMetadataInterface
mutableprivate

Definition at line 213 of file otbVectorImage.h.


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