Public Member Functions | Private Member Functions | Private Attributes
vimt_image_pyramid Class Reference

Pyramid of images of arbitrary type. More...

#include <vimt_image_pyramid.h>

List of all members.

Public Member Functions

 vimt_image_pyramid ()
 Dflt ctor.
 vimt_image_pyramid (const vimt_image_pyramid &)
 Copy ctor.
virtual ~vimt_image_pyramid ()
 Destructor.
void resize (int n_levels, const vimt_image &im_type)
 Resize to n_levels pyramid.
int lo () const
 Lowest level (highest resolution image) of pyramid.
int hi () const
 Highest level (lowest resolution image) of pyramid.
int n_levels () const
 Number of levels.
vimt_imageoperator() (int L)
 Image at level L.
const vimt_imageoperator() (int L) const
 Image at level L.
const vimt_image_pyramidoperator= (const vimt_image_pyramid &that)
 Copy operator.
void deep_copy (const vimt_image_pyramid &im_pyr)
 Take a deep copy of the given pyramid.
double base_pixel_width () const
 Mean width (in world coordinates) of pixels at level zero.
double scale_step () const
 Scaling per level.
vcl_vector< vimt_image * > & data ()
 Access to image data.
void set_widths (double base_pixel_width, double scale_step)
 Define pixel widths.
void print_summary (vcl_ostream &os) const
void print_all (vcl_ostream &os) const
 Print whole of each image to os.

Private Member Functions

void deleteImages ()

Private Attributes

vcl_vector< vimt_image * > image_
double base_pixel_width_
double scale_step_

Detailed Description

Pyramid of images of arbitrary type.

Definition at line 17 of file vimt_image_pyramid.h.


Constructor & Destructor Documentation

vimt_image_pyramid::vimt_image_pyramid ( )

Dflt ctor.

Definition at line 17 of file vimt_image_pyramid.cxx.

vimt_image_pyramid::vimt_image_pyramid ( const vimt_image_pyramid that)

Copy ctor.

Makes a shallow copy of each vimt_image object, not of the underlying data

Definition at line 75 of file vimt_image_pyramid.cxx.

vimt_image_pyramid::~vimt_image_pyramid ( ) [virtual]

Destructor.

Definition at line 31 of file vimt_image_pyramid.cxx.


Member Function Documentation

double vimt_image_pyramid::base_pixel_width ( ) const

Mean width (in world coordinates) of pixels at level zero.

Definition at line 123 of file vimt_image_pyramid.cxx.

vcl_vector< vimt_image * > & vimt_image_pyramid::data ( )

Access to image data.

Should only be used by pyramid builders

Definition at line 138 of file vimt_image_pyramid.cxx.

void vimt_image_pyramid::deep_copy ( const vimt_image_pyramid im_pyr)

Take a deep copy of the given pyramid.

Definition at line 58 of file vimt_image_pyramid.cxx.

void vimt_image_pyramid::deleteImages ( ) [private]

Definition at line 24 of file vimt_image_pyramid.cxx.

int vimt_image_pyramid::hi ( ) const

Highest level (lowest resolution image) of pyramid.

Highest level.

Definition at line 98 of file vimt_image_pyramid.cxx.

int vimt_image_pyramid::lo ( ) const

Lowest level (highest resolution image) of pyramid.

Lowest level of pyramid.

Definition at line 92 of file vimt_image_pyramid.cxx.

int vimt_image_pyramid::n_levels ( ) const

Number of levels.

Definition at line 103 of file vimt_image_pyramid.cxx.

vimt_image & vimt_image_pyramid::operator() ( int  L)

Image at level L.

Definition at line 109 of file vimt_image_pyramid.cxx.

const vimt_image & vimt_image_pyramid::operator() ( int  L) const

Image at level L.

Definition at line 116 of file vimt_image_pyramid.cxx.

const vimt_image_pyramid & vimt_image_pyramid::operator= ( const vimt_image_pyramid that)

Copy operator.

Makes a shallow copy of each vimt_image object, not of the underlying data

Definition at line 41 of file vimt_image_pyramid.cxx.

void vimt_image_pyramid::print_all ( vcl_ostream &  os) const

Print whole of each image to os.

Definition at line 159 of file vimt_image_pyramid.cxx.

void vimt_image_pyramid::print_summary ( vcl_ostream &  os) const

Definition at line 151 of file vimt_image_pyramid.cxx.

void vimt_image_pyramid::resize ( int  n_levels,
const vimt_image im_type 
)

Resize to n_levels pyramid.

Resize to [lo,hi] pyramid, each level of which is a clone of im_type.

Each level of which is a clone of im_type

Definition at line 81 of file vimt_image_pyramid.cxx.

double vimt_image_pyramid::scale_step ( ) const

Scaling per level.

Pixels at level L have width basePixelWidth() * scaleStep()^L

Definition at line 131 of file vimt_image_pyramid.cxx.

void vimt_image_pyramid::set_widths ( double  base_pixel_width,
double  scale_step 
)

Define pixel widths.

Definition at line 144 of file vimt_image_pyramid.cxx.


Member Data Documentation

Definition at line 20 of file vimt_image_pyramid.h.

vcl_vector<vimt_image*> vimt_image_pyramid::image_ [private]

Definition at line 19 of file vimt_image_pyramid.h.

Definition at line 21 of file vimt_image_pyramid.h.


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