Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BIAS::CalibratedPyramid< StorageType > Class Template Reference

This class takes care of consisiten re-sampling of images and associated ProjectionParameters. More...

#include <Image/CalibratedPyramid.hh>

+ Collaboration diagram for BIAS::CalibratedPyramid< StorageType >:

Public Member Functions

 CalibratedPyramid ()
 
 CalibratedPyramid (const PyramidImage< StorageType > &cp)
 
 CalibratedPyramid (const CalibratedPyramid< StorageType > &cp)
 
void Clear ()
 clears the pyramid image and the internal vector, does not explicitly delet the pointers More...
 
void CoordinateTransf (const Vector2< double > &coo0, const unsigned index, Vector2< double > &coo_index) const
 
double GetPositionOffset () const
 
double GetRescaleFactor () const
 get the subsampling factor: 2.0 equals More...
 
void Init (const CalibratedImage< StorageType > &image, const unsigned pyramid_size=2, const double rescale_factor=4.0)
 initialization with original image, total number of images in the pyramid and a rescale factor. More...
 
bool IsEmpty () const
 check for emptyness More...
 
CalibratedPyramid< StorageType > & operator= (const CalibratedPyramid< StorageType > &cp)
 shallow copy operator, only copies the pointers More...
 
const CalibratedImage
< StorageType > & 
operator[] (const unsigned index) const
 access operator More...
 
CalibratedImage< StorageType > & operator[] (const unsigned index)
 access operator More...
 
unsigned Size () const
 returns the number of images stored in the pyramid More...
 
 ~CalibratedPyramid ()
 

Protected Member Functions

void Downsample_ (SharedPtr< const Image< StorageType > > src, SharedPtr< Image< StorageType > > dst, const unsigned factor) const
 Downsampling for factor 2 or 4, using a binomial lowpass filter. More...
 

Protected Attributes

std::vector< CalibratedImage
< StorageType > > 
Data_
 holds the projection parameters and ptrs to the associated images More...
 
double PositionOffset_
 
PyramidImage< StorageType > PyramidImage_
 Internal data: Data_.size() must always be equal to PyramidImage_.GetPyramidSize() More...
 

Detailed Description

template<class StorageType>
class BIAS::CalibratedPyramid< StorageType >

This class takes care of consisiten re-sampling of images and associated ProjectionParameters.

Author
woelk 12/2007 (c) www.vision-n.de
Examples:
ExampleCalibratedPyramid.cpp, and TestCalibratedPyramid.cpp.

Definition at line 53 of file CalibratedPyramid.hh.

Constructor & Destructor Documentation

template<class StorageType >
CalibratedPyramid::CalibratedPyramid ( )
template<class StorageType >
CalibratedPyramid::CalibratedPyramid ( const PyramidImage< StorageType > &  cp)
template<class StorageType >
CalibratedPyramid::CalibratedPyramid ( const CalibratedPyramid< StorageType > &  cp)
template<class StorageType >
CalibratedPyramid::~CalibratedPyramid ( )

Definition at line 48 of file CalibratedPyramid.cpp.

Member Function Documentation

template<class StorageType >
void CalibratedPyramid::Clear ( )

clears the pyramid image and the internal vector, does not explicitly delet the pointers

Definition at line 110 of file CalibratedPyramid.cpp.

template<class StorageType >
void CalibratedPyramid::CoordinateTransf ( const Vector2< double > &  coo0,
const unsigned  index,
Vector2< double > &  coo_index 
) const

Definition at line 137 of file CalibratedPyramid.cpp.

template<class StorageType >
void CalibratedPyramid::Downsample_ ( SharedPtr< const Image< StorageType > >  src,
SharedPtr< Image< StorageType > >  dst,
const unsigned  factor 
) const
protected
template<class StorageType>
double BIAS::CalibratedPyramid< StorageType >::GetPositionOffset ( ) const
inline

Definition at line 109 of file CalibratedPyramid.hh.

template<class StorageType>
double BIAS::CalibratedPyramid< StorageType >::GetRescaleFactor ( ) const
inline

get the subsampling factor: 2.0 equals

Definition at line 106 of file CalibratedPyramid.hh.

template<class StorageType >
void CalibratedPyramid::Init ( const CalibratedImage< StorageType > &  image,
const unsigned  pyramid_size = 2,
const double  rescale_factor = 4.0 
)

initialization with original image, total number of images in the pyramid and a rescale factor.

A rescale factor of 4.0 means the the image at pyramid level[i] has a quarter of the border lengths of the image at pyramid level[i-1]. A rescale factor of 2.0 for example represent a classical Gaussian pyramid.

Definition at line 55 of file CalibratedPyramid.cpp.

References BIAS::Equal(), BIAS::CalibratedImage< StorageType >::image, and BIAS::CalibratedImage< StorageType >::projection.

template<class StorageType>
bool BIAS::CalibratedPyramid< StorageType >::IsEmpty ( ) const
inline

check for emptyness

Definition at line 78 of file CalibratedPyramid.hh.

template<class StorageType >
CalibratedPyramid< StorageType > & CalibratedPyramid::operator= ( const CalibratedPyramid< StorageType > &  cp)
template<class StorageType>
const CalibratedImage<StorageType>& BIAS::CalibratedPyramid< StorageType >::operator[] ( const unsigned  index) const
inline

access operator

Definition at line 82 of file CalibratedPyramid.hh.

template<class StorageType>
CalibratedImage<StorageType>& BIAS::CalibratedPyramid< StorageType >::operator[] ( const unsigned  index)
inline

access operator

Definition at line 86 of file CalibratedPyramid.hh.

template<class StorageType>
unsigned BIAS::CalibratedPyramid< StorageType >::Size ( ) const
inline

returns the number of images stored in the pyramid

Definition at line 102 of file CalibratedPyramid.hh.

Referenced by BIAS::CalibratedPyramid< StorageType >::CalibratedPyramid(), and BIAS::CalibratedPyramid< StorageType >::operator=().

Member Data Documentation

template<class StorageType>
std::vector<CalibratedImage<StorageType> > BIAS::CalibratedPyramid< StorageType >::Data_
protected

holds the projection parameters and ptrs to the associated images

Definition at line 119 of file CalibratedPyramid.hh.

Referenced by BIAS::CalibratedPyramid< StorageType >::CalibratedPyramid().

template<class StorageType>
double BIAS::CalibratedPyramid< StorageType >::PositionOffset_
protected
template<class StorageType>
PyramidImage<StorageType> BIAS::CalibratedPyramid< StorageType >::PyramidImage_
protected

Internal data: Data_.size() must always be equal to PyramidImage_.GetPyramidSize()

holds the images

Definition at line 117 of file CalibratedPyramid.hh.

Referenced by BIAS::CalibratedPyramid< StorageType >::CalibratedPyramid(), and BIAS::CalibratedPyramid< StorageType >::operator=().


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