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

Adaptor which generates reflected versions of images/points. More...

#include <msdi_reflected_marked_images.h>

Inheritance diagram for msdi_reflected_marked_images:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 msdi_reflected_marked_images (msdi_marked_images &raw_data, const vcl_vector< unsigned > &sym_pts, bool only_reflect=false)
 Default constructor.
 msdi_reflected_marked_images ()
 Construct with external vectors of images and points.
virtual ~msdi_reflected_marked_images ()
 Destructor.
vimt_gaussian_pyramid_builder_2d
< vxl_byte > & 
pyr_builder ()
 Pyramid builder to be used.
virtual void reset ()
 Move to start of data.
virtual bool next ()
 Move to next item. Return true until reach end of items.
virtual unsigned size () const
 Return number of examples this will provide.
virtual const vimt_image_2dimage ()
 Return current image.
virtual const vimt_image_pyramidimage_pyr ()
 Return current image pyramid.
virtual const msm_pointspoints ()
 points for the current image.
virtual vcl_string image_name () const
 Return current image file name.
virtual vcl_string points_name () const
 Return current points file name.

Private Member Functions

void get_image ()
 Generate current image.
void get_points ()
 Generate current points.
msdi_reflected_marked_imagesoperator= (const msdi_reflected_marked_images &)

Private Attributes

msdi_marked_imagesmarked_images_
 Original data.
vcl_vector< unsigned > sym_pts_
 Indicate correspondences between shape and its reflection.
bool only_reflect_
 When true, supply only reflection of original data.
vimt_image_pyramid image_pyr_
 Current image pyramid.
vimt_image_2d_of< vxl_byte > image_
 Current base image.
msm_points points_
 Current points.
bool first_pass_
 True on first pass.
bool points_ok_
 True if points are current.
bool image_ok_
 True if image_ is current.
bool image_pyr_ok_
 True if image_pyr_ is current.
vimt_gaussian_pyramid_builder_2d
< vxl_byte > 
pyr_builder_
 Pyramid builder.

Detailed Description

Adaptor which generates reflected versions of images/points.

Given a source haam_marked_images, generates a reflected version of each image/points pair. If only_reflect, then returns reflected version only. If not only_reflect, then return both reflected and original examples.

Definition at line 20 of file msdi_reflected_marked_images.h.


Constructor & Destructor Documentation

msdi_reflected_marked_images::msdi_reflected_marked_images ( msdi_marked_images raw_data,
const vcl_vector< unsigned > &  sym_pts,
bool  only_reflect = false 
)

Default constructor.

Construct with external vectors of images and points.

/params sym_pts[i] indicates symmetric match to point i /params only_reflect: When true, only supply reflected shapes.

Definition at line 16 of file msdi_reflected_marked_images.cxx.

msdi_reflected_marked_images::msdi_reflected_marked_images ( )

Construct with external vectors of images and points.

Pointers retained to both - they must stay in scope.

msdi_reflected_marked_images::~msdi_reflected_marked_images ( ) [virtual]

Destructor.

Definition at line 32 of file msdi_reflected_marked_images.cxx.


Member Function Documentation

void msdi_reflected_marked_images::get_image ( ) [private]

Generate current image.

Load in current image and generate suitable pyramid.

Definition at line 103 of file msdi_reflected_marked_images.cxx.

void msdi_reflected_marked_images::get_points ( ) [private]

Generate current points.

Definition at line 122 of file msdi_reflected_marked_images.cxx.

const vimt_image_2d & msdi_reflected_marked_images::image ( ) [virtual]

Return current image.

Implements msdi_marked_images.

Definition at line 44 of file msdi_reflected_marked_images.cxx.

vcl_string msdi_reflected_marked_images::image_name ( ) const [virtual]

Return current image file name.

Implements msdi_marked_images.

Definition at line 140 of file msdi_reflected_marked_images.cxx.

const vimt_image_pyramid & msdi_reflected_marked_images::image_pyr ( ) [virtual]

Return current image pyramid.

Implements msdi_marked_images.

Definition at line 52 of file msdi_reflected_marked_images.cxx.

bool msdi_reflected_marked_images::next ( ) [virtual]

Move to next item. Return true until reach end of items.

Move to next example.

Implements msdi_marked_images.

Definition at line 83 of file msdi_reflected_marked_images.cxx.

msdi_reflected_marked_images& msdi_reflected_marked_images::operator= ( const msdi_reflected_marked_images ) [private]
const msm_points & msdi_reflected_marked_images::points ( ) [virtual]

points for the current image.

Implements msdi_marked_images.

Definition at line 64 of file msdi_reflected_marked_images.cxx.

vcl_string msdi_reflected_marked_images::points_name ( ) const [virtual]

Return current points file name.

Implements msdi_marked_images.

Definition at line 148 of file msdi_reflected_marked_images.cxx.

vimt_gaussian_pyramid_builder_2d<vxl_byte>& msdi_reflected_marked_images::pyr_builder ( ) [inline]

Pyramid builder to be used.

Definition at line 80 of file msdi_reflected_marked_images.h.

void msdi_reflected_marked_images::reset ( ) [virtual]

Move to start of data.

Set to first example.

Implements msdi_marked_images.

Definition at line 72 of file msdi_reflected_marked_images.cxx.

unsigned msdi_reflected_marked_images::size ( ) const [virtual]

Return number of examples this will provide.

Implements msdi_marked_images.

Definition at line 36 of file msdi_reflected_marked_images.cxx.


Member Data Documentation

True on first pass.

Definition at line 42 of file msdi_reflected_marked_images.h.

Current base image.

Definition at line 36 of file msdi_reflected_marked_images.h.

True if image_ is current.

Definition at line 48 of file msdi_reflected_marked_images.h.

Current image pyramid.

Definition at line 33 of file msdi_reflected_marked_images.h.

True if image_pyr_ is current.

Definition at line 51 of file msdi_reflected_marked_images.h.

Original data.

Definition at line 23 of file msdi_reflected_marked_images.h.

When true, supply only reflection of original data.

When false, supply original and reflection.

Definition at line 30 of file msdi_reflected_marked_images.h.

Current points.

Definition at line 39 of file msdi_reflected_marked_images.h.

True if points are current.

Definition at line 45 of file msdi_reflected_marked_images.h.

Pyramid builder.

Definition at line 60 of file msdi_reflected_marked_images.h.

vcl_vector<unsigned> msdi_reflected_marked_images::sym_pts_ [private]

Indicate correspondences between shape and its reflection.

Definition at line 26 of file msdi_reflected_marked_images.h.


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