Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Attributes
jafar::image::Pyramid Class Reference

Detailed Description

base class for pyramidal scalespace representations.

Definition at line 20 of file pyramid.hpp.

#include <pyramid.hpp>

Inheritance diagram for jafar::image::Pyramid:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::vector
< jafar::image::Image >
::iterator 
iterator
typedef std::vector
< jafar::image::Image >
::const_iterator 
const_iterator

Public Member Functions

iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
 Pyramid (int levels=0)
 Default constructor.
 Pyramid (jafar::image::Image const &img, int levels)
 build constructor
 Pyramid (Pyramid const &pyr)
 Copy constructor.
virtual ~Pyramid ()
 Default destructor.
Pyramid clone () const
size_t size () const
bool check () const
jafar::image::Imageoperator[] (int l)
jafar::image::Image const & operator[] (int l) const
template<typename type >
type getPixelValue (int x, int y, int l, int ref_l=0, int channel=0) const
template<typename type >
double getSubPixelValue (double x, double y, int l, int ref_l=0, int channel=0) const
Pyramidoperator= (Pyramid const &pyr)
bool operator== (jafar::image::Image const &img) const
bool operator== (jafar::image::Pyramid const &pyr) const
virtual void build (jafar::image::Image const &img, int l=0)

Protected Attributes

std::vector< jafar::image::Imagep_pyr

Member Function Documentation

virtual void jafar::image::Pyramid::build ( jafar::image::Image const &  img,
int  l = 0 
) [virtual]

build the pyramid. Here, it uses a gaussian 5x5 kernel filter

Reimplemented in jafar::image::LinearPyramid, jafar::image::GaborPyramid, jafar::image::GaussianPyramid, and jafar::sas::OrientedConspicuity.

Referenced by Pyramid().

bool jafar::image::Pyramid::check ( ) const [inline]
Returns:
true if all images in pyramid are intialized

Definition at line 65 of file pyramid.hpp.

References JFR_DEBUG, and size().

clone pyramid

Definition at line 48 of file pyramid.hpp.

References size().

template<typename type >
type jafar::image::Pyramid::getPixelValue ( int  x,
int  y,
int  l,
int  ref_l = 0,
int  channel = 0 
) const

get pixel value for given level. ref_l reference level of (x,y) [default: 0]

Definition at line 145 of file pyramid.hpp.

References JFR_PRECOND.

template<typename type >
double jafar::image::Pyramid::getSubPixelValue ( double  x,
double  y,
int  l,
int  ref_l = 0,
int  channel = 0 
) const

get subpixel value for given level ref_l reference level of (x,y) [default: 0]

Definition at line 158 of file pyramid.hpp.

References JFR_PRECOND.

Pyramid& jafar::image::Pyramid::operator= ( Pyramid const &  pyr) [inline]

Pyramid assignation

Definition at line 109 of file pyramid.hpp.

bool jafar::image::Pyramid::operator== ( jafar::image::Image const &  img) const [inline]

check if given image and p_pyr[0] have the same characteristics

Definition at line 117 of file pyramid.hpp.

bool jafar::image::Pyramid::operator== ( jafar::image::Pyramid const &  pyr) const [inline]

check if given pyramid and p_pyr have the same characteristics

Definition at line 124 of file pyramid.hpp.

References size().

jafar::image::Image& jafar::image::Pyramid::operator[] ( int  l) [inline]

image accessor

Definition at line 81 of file pyramid.hpp.

jafar::image::Image const& jafar::image::Pyramid::operator[] ( int  l) const [inline]

const image accessor

Definition at line 88 of file pyramid.hpp.

size_t jafar::image::Pyramid::size ( ) const [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:39 for Jafar by doxygen 1.7.6.1
LAAS-CNRS