OTB  7.0.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::Image< TPixel, VImageDimension > Class Template Reference

#include <otbImage.h>

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

Public Types

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::NeighborhoodAccessorFunctor< SelfNeighborhoodAccessorFunctorType
 
typedef Superclass::OffsetType OffsetType
 
typedef Superclass::OffsetValueType OffsetValueType
 
typedef Superclass::PixelContainer PixelContainer
 
typedef PixelContainer::ConstPointer PixelContainerConstPointer
 
typedef PixelContainer::Pointer PixelContainerPointer
 
typedef Superclass::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef Superclass::RegionType RegionType
 
typedef Image Self
 
typedef Superclass::SizeType SizeType
 
typedef Superclass::SpacingType SpacingType
 
typedef itk::Image< 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 ImageKeywordlistType GetImageKeywordlist (void)
 
virtual const ImageKeywordlistType GetImageKeywordlist (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
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = VImageDimension
 

Protected Member Functions

 Image ()
 
 ~Image () override
 

Private Member Functions

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

Private Attributes

ImageMetadataInterfacePointerType m_ImageMetadataInterface
 

Detailed Description

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

Creation of an "otb" image which contains metadata.

Examples:
BasicFilters/DEMToRainbowExample.cxx, BasicFilters/HillShadingExample.cxx, DisparityMap/FineRegistrationImageFilterExample.cxx, DisparityMap/NCCRegistrationFilterExample.cxx, FeatureExtraction/CloudDetectionExample.cxx, Fusion/BayesianFusionImageFilter.cxx, Fusion/PanSharpeningExample.cxx, IO/DEMToImageGenerator.cxx, Markov/MarkovClassification1Example.cxx, Markov/MarkovClassification2Example.cxx, Markov/MarkovRegularizationExample.cxx, Markov/MarkovRestorationExample.cxx, Patented/SIFTExample.cxx, Patented/SIFTFastExample.cxx, Projections/VectorDataExtractROIExample.cxx, and Projections/VectorDataProjectionExample.cxx.

Definition at line 89 of file otbImage.h.

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 96 of file otbImage.h.

◆ ConstWeakPointer

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

Definition at line 97 of file otbImage.h.

◆ DirectionType

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

Direction typedef support. A matrix of direction cosines.

Definition at line 151 of file otbImage.h.

◆ ImageKeywordlistType

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

Definition at line 100 of file otbImage.h.

◆ ImageMetadataInterfacePointerType

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

Definition at line 101 of file otbImage.h.

◆ IndexType

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

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

Definition at line 142 of file otbImage.h.

◆ InternalPixelType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::InternalPixelType otb::Image< 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 120 of file otbImage.h.

◆ IOPixelType

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

Definition at line 122 of file otbImage.h.

◆ NeighborhoodAccessorFunctorType

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

Accessor type that convert data between internal and external representations. Tyepdef for the functor used to access a neighborhood of pixel pointers.

Definition at line 130 of file otbImage.h.

◆ OffsetType

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

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

Definition at line 145 of file otbImage.h.

◆ OffsetValueType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::OffsetValueType otb::Image< TPixel, VImageDimension >::OffsetValueType

Offset typedef (relative position between indices)

Definition at line 169 of file otbImage.h.

◆ PixelContainer

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

Container used to store pixels in the image.

Definition at line 139 of file otbImage.h.

◆ PixelContainerConstPointer

template<class TPixel, unsigned int VImageDimension = 2>
typedef PixelContainer::ConstPointer otb::Image< TPixel, VImageDimension >::PixelContainerConstPointer

Definition at line 166 of file otbImage.h.

◆ PixelContainerPointer

template<class TPixel, unsigned int VImageDimension = 2>
typedef PixelContainer::Pointer otb::Image< TPixel, VImageDimension >::PixelContainerPointer

A pointer to the pixel container.

Definition at line 165 of file otbImage.h.

◆ PixelType

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

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

Definition at line 107 of file otbImage.h.

◆ Pointer

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

Definition at line 95 of file otbImage.h.

◆ PointType

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

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

Definition at line 162 of file otbImage.h.

◆ RegionType

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

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

Definition at line 154 of file otbImage.h.

◆ Self

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

Standard class typedefs.

Definition at line 93 of file otbImage.h.

◆ SizeType

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

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

Definition at line 148 of file otbImage.h.

◆ SpacingType

template<class TPixel, unsigned int VImageDimension = 2>
typedef Superclass::SpacingType otb::Image< 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 158 of file otbImage.h.

◆ Superclass

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

Definition at line 94 of file otbImage.h.

◆ ValueType

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

Typedef alias for PixelType

Definition at line 114 of file otbImage.h.

◆ VectorType

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

Definition at line 99 of file otbImage.h.

Constructor & Destructor Documentation

◆ Image() [1/2]

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

Definition at line 33 of file otbImage.hxx.

◆ ~Image()

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

Definition at line 257 of file otbImage.h.

◆ Image() [2/2]

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

Member Function Documentation

◆ CopyInformation()

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

Copy metadata from a DataObject.

Definition at line 213 of file otbImage.hxx.

◆ CreateAnother()

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

◆ GetGCPCol()

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

Definition at line 92 of file otbImage.hxx.

◆ GetGCPCount()

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

Definition at line 56 of file otbImage.hxx.

◆ GetGCPId()

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

Definition at line 74 of file otbImage.hxx.

◆ GetGCPInfo()

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

Definition at line 80 of file otbImage.hxx.

◆ GetGCPProjection()

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

Get the GCP projection coordinates of the image.

Definition at line 50 of file otbImage.hxx.

◆ GetGCPRow()

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

Definition at line 86 of file otbImage.hxx.

◆ GetGCPs() [1/2]

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

Definition at line 62 of file otbImage.hxx.

◆ GetGCPs() [2/2]

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

Definition at line 68 of file otbImage.hxx.

◆ GetGCPX()

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

Definition at line 98 of file otbImage.hxx.

◆ GetGCPY()

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

Definition at line 104 of file otbImage.hxx.

◆ GetGCPZ()

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

Definition at line 110 of file otbImage.hxx.

◆ GetGeoTransform()

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

Get the six coefficients of affine geoTtransform.

Definition at line 116 of file otbImage.hxx.

◆ GetImageKeywordlist() [1/2]

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

Get image keyword list

Definition at line 188 of file otbImage.hxx.

◆ GetImageKeywordlist() [2/2]

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

Definition at line 204 of file otbImage.hxx.

◆ GetLowerLeftCorner()

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

Get image corners.

Definition at line 134 of file otbImage.hxx.

◆ GetLowerRightCorner()

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

Get image corners.

Definition at line 140 of file otbImage.hxx.

◆ GetMetaDataInterface()

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

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

Definition at line 220 of file otbImage.hxx.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

◆ GetNeighborhoodAccessor() [1/2]

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

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

Definition at line 184 of file otbImage.h.

◆ GetNeighborhoodAccessor() [2/2]

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

Return the NeighborhoodAccessor functor

Definition at line 190 of file otbImage.h.

◆ GetProjectionRef()

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

Get the projection coordinate system of the image.

Definition at line 38 of file otbImage.hxx.

◆ GetSignedSpacing()

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

Get signed spacing

Definition at line 146 of file otbImage.hxx.

Referenced by otb::PersistentSamplingFilterBase< TInputImage >::GenerateOutputInformation().

◆ GetUpperLeftCorner()

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

Get image corners.

Definition at line 122 of file otbImage.hxx.

◆ GetUpperRightCorner()

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

Get image corners.

Definition at line 128 of file otbImage.hxx.

◆ New()

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

◆ operator=()

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

◆ PrintSelf()

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

Definition at line 228 of file otbImage.hxx.

◆ SetImageKeywordList()

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

Definition at line 197 of file otbImage.hxx.

◆ SetProjectionRef()

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

Definition at line 44 of file otbImage.hxx.

◆ SetSignedSpacing() [1/2]

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

Set signed spacing

Definition at line 158 of file otbImage.hxx.

◆ SetSignedSpacing() [2/2]

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

Set signed spacing

Definition at line 181 of file otbImage.hxx.

Member Data Documentation

◆ ImageDimension

template<class TPixel, unsigned int VImageDimension = 2>
const unsigned int otb::Image< 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 136 of file otbImage.h.

Referenced by otb::Image< TOutputPixelType, 2 >::GetSignedSpacing().

◆ m_ImageMetadataInterface

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

Definition at line 271 of file otbImage.h.


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