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

Iterator for images and points stored in external arrays. More...

#include <msdi_array_of_marked_images.h>

Inheritance diagram for msdi_array_of_marked_images:
Inheritance graph
[legend]

List of all members.

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_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 suitable pyramid from current image.
msdi_array_of_marked_imagesoperator= (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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

When true, convert multiplane images to single plane.

Definition at line 25 of file msdi_array_of_marked_images.h.

Current base image.

Definition at line 22 of file msdi_array_of_marked_images.h.

Image directory.

Definition at line 34 of file msdi_array_of_marked_images.h.

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.

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.

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.

Pyramid builder.

Definition at line 49 of file msdi_array_of_marked_images.h.


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