Iterator for images and points stored in external arrays. More...
#include <msdi_array_of_marked_images.h>

Public Member Functions | |
| msdi_array_of_marked_images () | |
| Default constructor. | |
| msdi_array_of_marked_images (const vcl_vector< vil_image_view< vxl_byte > > &images, const vcl_vector< msm_points > &points, bool grey_only=true) | |
| Construct with external vectors of images and points. | |
| void | set (const vcl_vector< vil_image_view< vxl_byte > > &images, const vcl_vector< msm_points > &points, bool grey_only=true) |
| Initialise with external vectors of images and points. | |
| virtual | ~msdi_array_of_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 suitable pyramid from current image. | |
| msdi_array_of_marked_images & | operator= (const msdi_array_of_marked_images &) |
Private Attributes | |
| vimt_image_pyramid | image_pyr_ |
| Current image pyramid. | |
| vimt_image_2d_of< vxl_byte > | image_ |
| Current base image. | |
| bool | grey_only_ |
| When true, convert multiplane images to single plane. | |
| bool | image_ok_ |
| True if image_ is current. | |
| bool | image_pyr_ok_ |
| True if image_pyr_ is current. | |
| vcl_string | image_dir_ |
| Image directory. | |
| const vcl_vector < vil_image_view< vxl_byte > > * | images_ |
| Pointer to external vector of images. | |
| const vcl_vector< msm_points > * | points_ |
| Pointer to external vector of points. | |
| int | index_ |
| Index of current image. | |
| vimt_gaussian_pyramid_builder_2d < vxl_byte > | pyr_builder_ |
| Pyramid builder. | |
Iterator for images and points stored in external arrays.
Steps through external points and images on demand.
Definition at line 16 of file msdi_array_of_marked_images.h.
| msdi_array_of_marked_images::msdi_array_of_marked_images | ( | ) |
Default constructor.
Definition at line 15 of file msdi_array_of_marked_images.cxx.
| msdi_array_of_marked_images::msdi_array_of_marked_images | ( | const vcl_vector< vil_image_view< vxl_byte > > & | images, |
| const vcl_vector< msm_points > & | points, | ||
| bool | grey_only = true |
||
| ) |
Construct with external vectors of images and points.
Pointers retained to both - they must stay in scope.
Definition at line 22 of file msdi_array_of_marked_images.cxx.
| msdi_array_of_marked_images::~msdi_array_of_marked_images | ( | ) | [virtual] |
Destructor.
Definition at line 52 of file msdi_array_of_marked_images.cxx.
| void msdi_array_of_marked_images::get_image | ( | ) | [private] |
Generate suitable pyramid from current image.
Load in current image and generate suitable pyramid.
Definition at line 118 of file msdi_array_of_marked_images.cxx.
| const vimt_image_2d & msdi_array_of_marked_images::image | ( | ) | [virtual] |
Return current image.
Implements msdi_marked_images.
Definition at line 63 of file msdi_array_of_marked_images.cxx.
| vcl_string msdi_array_of_marked_images::image_name | ( | ) | const [virtual] |
Return current image file name.
Implements msdi_marked_images.
Definition at line 135 of file msdi_array_of_marked_images.cxx.
| const vimt_image_pyramid & msdi_array_of_marked_images::image_pyr | ( | ) | [virtual] |
Return current image pyramid.
Implements msdi_marked_images.
Definition at line 73 of file msdi_array_of_marked_images.cxx.
| bool msdi_array_of_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 106 of file msdi_array_of_marked_images.cxx.
| msdi_array_of_marked_images& msdi_array_of_marked_images::operator= | ( | const msdi_array_of_marked_images & | ) | [private] |
| const msm_points & msdi_array_of_marked_images::points | ( | ) | [virtual] |
points for the current image.
Implements msdi_marked_images.
Definition at line 87 of file msdi_array_of_marked_images.cxx.
| vcl_string msdi_array_of_marked_images::points_name | ( | ) | const [virtual] |
Return current points file name.
Implements msdi_marked_images.
Definition at line 144 of file msdi_array_of_marked_images.cxx.
| vimt_gaussian_pyramid_builder_2d<vxl_byte>& msdi_array_of_marked_images::pyr_builder | ( | ) | [inline] |
Pyramid builder to be used.
Definition at line 74 of file msdi_array_of_marked_images.h.
| void msdi_array_of_marked_images::reset | ( | ) | [virtual] |
Move to start of data.
Set to first example.
Implements msdi_marked_images.
Definition at line 96 of file msdi_array_of_marked_images.cxx.
| void msdi_array_of_marked_images::set | ( | const vcl_vector< vil_image_view< vxl_byte > > & | images, |
| const vcl_vector< msm_points > & | points, | ||
| bool | grey_only = true |
||
| ) |
Initialise with external vectors of images and points.
Initialise with directories and filenames.
Pointers retained to both - they must stay in scope.
Definition at line 32 of file msdi_array_of_marked_images.cxx.
| unsigned msdi_array_of_marked_images::size | ( | ) | const [virtual] |
Return number of examples this will provide.
Implements msdi_marked_images.
Definition at line 56 of file msdi_array_of_marked_images.cxx.
bool msdi_array_of_marked_images::grey_only_ [private] |
When true, convert multiplane images to single plane.
Definition at line 25 of file msdi_array_of_marked_images.h.
vimt_image_2d_of<vxl_byte> msdi_array_of_marked_images::image_ [private] |
Current base image.
Definition at line 22 of file msdi_array_of_marked_images.h.
vcl_string msdi_array_of_marked_images::image_dir_ [private] |
Image directory.
Definition at line 34 of file msdi_array_of_marked_images.h.
bool msdi_array_of_marked_images::image_ok_ [private] |
True if image_ is current.
Definition at line 28 of file msdi_array_of_marked_images.h.
Current image pyramid.
Definition at line 19 of file msdi_array_of_marked_images.h.
bool msdi_array_of_marked_images::image_pyr_ok_ [private] |
True if image_pyr_ is current.
Definition at line 31 of file msdi_array_of_marked_images.h.
const vcl_vector<vil_image_view<vxl_byte> >* msdi_array_of_marked_images::images_ [private] |
Pointer to external vector of images.
Definition at line 37 of file msdi_array_of_marked_images.h.
int msdi_array_of_marked_images::index_ [private] |
Index of current image.
Definition at line 43 of file msdi_array_of_marked_images.h.
const vcl_vector<msm_points>* msdi_array_of_marked_images::points_ [private] |
Pointer to external vector of points.
Definition at line 40 of file msdi_array_of_marked_images.h.
vimt_gaussian_pyramid_builder_2d<vxl_byte> msdi_array_of_marked_images::pyr_builder_ [private] |
Pyramid builder.
Definition at line 49 of file msdi_array_of_marked_images.h.
1.7.5.1