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

#include <otbGroundSpacingImageFunction.h>

+ Inheritance diagram for otb::GroundSpacingImageFunction< TInputImage, TCoordRep >:
+ Collaboration diagram for otb::GroundSpacingImageFunction< TInputImage, TCoordRep >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef Superclass::ContinuousIndexType ContinuousIndexType
 
typedef itk::Vector< ValueType, 2 > FloatType
 
typedef Superclass::IndexType IndexType
 
typedef IndexType::IndexValueType IndexValueType
 
typedef TInputImage InputImageType
 
typedef Superclass::OutputType OutputType
 
typedef itk::SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef GroundSpacingImageFunction Self
 
typedef itk::ImageFunction< TInputImage, FloatType, TCoordRep > Superclass
 
typedef otb::GenericRSTransform< double > TransformType
 
typedef float ValueType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
FloatType EvaluateAtIndex (const IndexType &index) const override
 
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = InputImageType::ImageDimension
 
ValueType m_R
 
ValueType m_Deg2radCoef
 
FloatType Evaluate (const PointType &point) const override
 
FloatType EvaluateAtContinuousIndex (const ContinuousIndexType &cindex) const override
 
PointType GetPixelLocation (const IndexType &index) const
 
 GroundSpacingImageFunction ()
 
 ~GroundSpacingImageFunction () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 GroundSpacingImageFunction (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TInputImage, class TCoordRep = float>
class otb::GroundSpacingImageFunction< TInputImage, TCoordRep >

Calculate the approximate ground spacing in X and Y directions.

This uses the 'Haversine' formula to calculate great-circle distances between the two points (that is, the shortest distance over the Earth's surface) giving an 'as-the-crow-flies' distance between the points (ignoring any hills!).

Definition at line 45 of file otbGroundSpacingImageFunction.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage , class TCoordRep = float>
typedef itk::SmartPointer<const Self> otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::ConstPointer

Definition at line 60 of file otbGroundSpacingImageFunction.h.

◆ ContinuousIndexType

template<class TInputImage , class TCoordRep = float>
typedef Superclass::ContinuousIndexType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::ContinuousIndexType

Definition at line 72 of file otbGroundSpacingImageFunction.h.

◆ FloatType

template<class TInputImage , class TCoordRep = float>
typedef itk::Vector<ValueType, 2> otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::FloatType

Definition at line 55 of file otbGroundSpacingImageFunction.h.

◆ IndexType

template<class TInputImage , class TCoordRep = float>
typedef Superclass::IndexType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::IndexType

Definition at line 71 of file otbGroundSpacingImageFunction.h.

◆ IndexValueType

template<class TInputImage , class TCoordRep = float>
typedef IndexType::IndexValueType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::IndexValueType

Definition at line 77 of file otbGroundSpacingImageFunction.h.

◆ InputImageType

template<class TInputImage , class TCoordRep = float>
typedef TInputImage otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::InputImageType

InputImageType typedef support.

Definition at line 66 of file otbGroundSpacingImageFunction.h.

◆ OutputType

template<class TInputImage , class TCoordRep = float>
typedef Superclass::OutputType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::OutputType

Definition at line 70 of file otbGroundSpacingImageFunction.h.

◆ Pointer

template<class TInputImage , class TCoordRep = float>
typedef itk::SmartPointer<Self> otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::Pointer

Definition at line 59 of file otbGroundSpacingImageFunction.h.

◆ PointType

template<class TInputImage , class TCoordRep = float>
typedef Superclass::PointType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::PointType

Definition at line 73 of file otbGroundSpacingImageFunction.h.

◆ Self

template<class TInputImage , class TCoordRep = float>
typedef GroundSpacingImageFunction otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::Self

Standard class typedefs.

Definition at line 50 of file otbGroundSpacingImageFunction.h.

◆ Superclass

template<class TInputImage , class TCoordRep = float>
typedef itk::ImageFunction<TInputImage, FloatType, TCoordRep> otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::Superclass

Definition at line 57 of file otbGroundSpacingImageFunction.h.

◆ TransformType

template<class TInputImage , class TCoordRep = float>
typedef otb::GenericRSTransform<double> otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::TransformType

Definition at line 75 of file otbGroundSpacingImageFunction.h.

◆ ValueType

template<class TInputImage , class TCoordRep = float>
typedef float otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::ValueType

Datatype used for the density

Definition at line 53 of file otbGroundSpacingImageFunction.h.

Constructor & Destructor Documentation

◆ GroundSpacingImageFunction() [1/2]

template<class TInputImage , class TCoordRep >
otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::GroundSpacingImageFunction
protected

Constructor

Definition at line 36 of file otbGroundSpacingImageFunction.hxx.

References otb::CONST_PI.

◆ ~GroundSpacingImageFunction()

template<class TInputImage , class TCoordRep = float>
otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::~GroundSpacingImageFunction ( )
inlineoverrideprotected

Evaluate the function at non-integer positions

Definition at line 104 of file otbGroundSpacingImageFunction.h.

◆ GroundSpacingImageFunction() [2/2]

template<class TInputImage , class TCoordRep = float>
otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::GroundSpacingImageFunction ( const Self )
privatedelete

Evaluate the function at non-integer positions

Member Function Documentation

◆ CreateAnother()

template<class TInputImage , class TCoordRep = float>
virtual::itk::LightObject::Pointer otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::CreateAnother ( void  ) const

◆ Evaluate()

template<class TInputImage , class TCoordRep = float>
FloatType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::Evaluate ( const PointType point) const
inlineoverride

Evaluate the function at non-integer positions

Definition at line 85 of file otbGroundSpacingImageFunction.h.

◆ EvaluateAtContinuousIndex()

template<class TInputImage , class TCoordRep = float>
FloatType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::EvaluateAtContinuousIndex ( const ContinuousIndexType cindex) const
inlineoverride

Evaluate the function at non-integer positions

Definition at line 93 of file otbGroundSpacingImageFunction.h.

◆ EvaluateAtIndex()

template<class TInputImage , class TCoordRep >
GroundSpacingImageFunction< TInputImage, TCoordRep >::FloatType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::EvaluateAtIndex ( const IndexType index) const
override

Evalulate the function at specified index

Definition at line 56 of file otbGroundSpacingImageFunction.hxx.

◆ GetNameOfClass()

template<class TInputImage , class TCoordRep = float>
virtual const char* otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetPixelLocation()

template<class TInputImage , class TCoordRep >
GroundSpacingImageFunction< TInputImage, TCoordRep >::PointType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::GetPixelLocation ( const IndexType index) const

Evaluate the function at non-integer positions

Definition at line 107 of file otbGroundSpacingImageFunction.hxx.

References otb::internal::GetSignedSpacing().

◆ New()

template<class TInputImage , class TCoordRep = float>
static Pointer otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TInputImage , class TCoordRep = float>
void otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::operator= ( const Self )
privatedelete

Evaluate the function at non-integer positions

◆ PrintSelf()

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

Evaluate the function at non-integer positions

Definition at line 46 of file otbGroundSpacingImageFunction.hxx.

Member Data Documentation

◆ ImageDimension

template<class TInputImage , class TCoordRep = float>
const unsigned int otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::ImageDimension = InputImageType::ImageDimension
static

Definition at line 79 of file otbGroundSpacingImageFunction.h.

◆ m_Deg2radCoef

template<class TInputImage , class TCoordRep = float>
ValueType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::m_Deg2radCoef
private

Evaluate the function at non-integer positions

Definition at line 114 of file otbGroundSpacingImageFunction.h.

◆ m_R

template<class TInputImage , class TCoordRep = float>
ValueType otb::GroundSpacingImageFunction< TInputImage, TCoordRep >::m_R
private

Evaluate the function at non-integer positions

Definition at line 113 of file otbGroundSpacingImageFunction.h.


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