Adaptor which generates reflected versions of images/points. More...
#include <msdi_reflected_marked_images.h>
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_2d & | image () |
Return current image. | |
virtual const vimt_image_pyramid & | image_pyr () |
Return current image pyramid. | |
virtual const msm_points & | points () |
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_images & | operator= (const msdi_reflected_marked_images &) |
Private Attributes | |
msdi_marked_images & | marked_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. |
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.
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.
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.
bool msdi_reflected_marked_images::first_pass_ [private] |
True on first pass.
Definition at line 42 of file msdi_reflected_marked_images.h.
vimt_image_2d_of<vxl_byte> msdi_reflected_marked_images::image_ [private] |
Current base image.
Definition at line 36 of file msdi_reflected_marked_images.h.
bool msdi_reflected_marked_images::image_ok_ [private] |
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.
bool msdi_reflected_marked_images::image_pyr_ok_ [private] |
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.
bool msdi_reflected_marked_images::only_reflect_ [private] |
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.
bool msdi_reflected_marked_images::points_ok_ [private] |
True if points are current.
Definition at line 45 of file msdi_reflected_marked_images.h.
vimt_gaussian_pyramid_builder_2d<vxl_byte> msdi_reflected_marked_images::pyr_builder_ [private] |
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.