Basic Image AlgorithmS Library
2.8.0
|
This class takes care of consisiten re-sampling of images and associated ProjectionParameters. More...
#include <Image/CalibratedPyramid.hh>
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... | |
This class takes care of consisiten re-sampling of images and associated ProjectionParameters.
Definition at line 53 of file CalibratedPyramid.hh.
CalibratedPyramid::CalibratedPyramid | ( | ) |
Definition at line 12 of file CalibratedPyramid.cpp.
References BIAS::CalibratedPyramid< StorageType >::Data_, BIAS::CalibratedPyramid< StorageType >::PyramidImage_, and BIAS::PyramidImage< T >::Size().
CalibratedPyramid::CalibratedPyramid | ( | const PyramidImage< StorageType > & | cp | ) |
Definition at line 35 of file CalibratedPyramid.cpp.
References BIAS::CalibratedPyramid< StorageType >::Data_, BIAS::CalibratedPyramid< StorageType >::PyramidImage_, and BIAS::CalibratedPyramid< StorageType >::Size().
CalibratedPyramid::CalibratedPyramid | ( | const CalibratedPyramid< StorageType > & | cp | ) |
Definition at line 26 of file CalibratedPyramid.cpp.
References BIAS::CalibratedPyramid< StorageType >::operator=().
CalibratedPyramid::~CalibratedPyramid | ( | ) |
Definition at line 48 of file CalibratedPyramid.cpp.
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.
void CalibratedPyramid::CoordinateTransf | ( | const Vector2< double > & | coo0, |
const unsigned | index, | ||
Vector2< double > & | coo_index | ||
) | const |
Definition at line 137 of file CalibratedPyramid.cpp.
|
protected |
Downsampling for factor 2 or 4, using a binomial lowpass filter.
Definition at line 152 of file CalibratedPyramid.cpp.
References BIAS::Binomial< InputStorageType, OutputStorageType >::Filter(), BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetWidth(), BIAS::FilterBase< InputStorageType, OutputStorageType >::SetBorderHandling(), and BIAS::Binomial< InputStorageType, OutputStorageType >::SetHalfWinSize().
|
inline |
Definition at line 109 of file CalibratedPyramid.hh.
|
inline |
get the subsampling factor: 2.0 equals
Definition at line 106 of file CalibratedPyramid.hh.
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.
|
inline |
check for emptyness
Definition at line 78 of file CalibratedPyramid.hh.
CalibratedPyramid< StorageType > & CalibratedPyramid::operator= | ( | const CalibratedPyramid< StorageType > & | cp | ) |
shallow copy operator, only copies the pointers
Definition at line 117 of file CalibratedPyramid.cpp.
References BIAS::CalibratedPyramid< StorageType >::PositionOffset_, BIAS::CalibratedPyramid< StorageType >::PyramidImage_, BIAS::PyramidImage< T >::resize(), and BIAS::CalibratedPyramid< StorageType >::Size().
Referenced by BIAS::CalibratedPyramid< StorageType >::CalibratedPyramid().
|
inline |
access operator
Definition at line 82 of file CalibratedPyramid.hh.
|
inline |
access operator
Definition at line 86 of file CalibratedPyramid.hh.
|
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=().
|
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().
|
protected |
Definition at line 126 of file CalibratedPyramid.hh.
Referenced by BIAS::CalibratedPyramid< StorageType >::operator=().
|
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=().