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

Iterator for images and points stored in files. More...

#include <msdi_marked_images_from_files.h>

Inheritance diagram for msdi_marked_images_from_files:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 msdi_marked_images_from_files ()
 Default constructor.
 msdi_marked_images_from_files (const vcl_string &image_dir, const vcl_vector< vcl_string > &image_names, const vcl_string &points_dir, const vcl_vector< vcl_string > &points_names)
 Construct with directories and filenames.
void set (const vcl_string &image_dir, const vcl_vector< vcl_string > &image_names, const vcl_string &points_dir, const vcl_vector< vcl_string > &points_names)
 Initialise with directories and filenames.
void set (const vcl_string &image_dir, const vcl_vector< vcl_string > &image_names, const vcl_string &points_dir)
 Initialise with directories and filenames.
virtual ~msdi_marked_images_from_files ()
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 ()
 Load in current image and generate suitable pyramid.
void get_points ()
 Load in current points.
msdi_marked_images_from_filesoperator= (const msdi_marked_images_from_files &)

Private Attributes

msm_points points_
 Current points.
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.
bool points_ok_
 True if points_ are current.
vcl_string image_dir_
 Image directory.
vcl_vector< vcl_string > image_name_
 Image names.
vcl_string points_dir_
 Points directory.
vcl_vector< vcl_string > points_name_
 Points file names.
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 files.

Loads in points and images on demand.

Definition at line 15 of file msdi_marked_images_from_files.h.


Constructor & Destructor Documentation

msdi_marked_images_from_files::msdi_marked_images_from_files ( )

Default constructor.

Definition at line 15 of file msdi_marked_images_from_files.cxx.

msdi_marked_images_from_files::msdi_marked_images_from_files ( const vcl_string &  image_dir,
const vcl_vector< vcl_string > &  image_names,
const vcl_string &  points_dir,
const vcl_vector< vcl_string > &  points_names 
)

Construct with directories and filenames.

Construct to use the external images and points of given type.

Definition at line 23 of file msdi_marked_images_from_files.cxx.

msdi_marked_images_from_files::~msdi_marked_images_from_files ( ) [virtual]

Definition at line 71 of file msdi_marked_images_from_files.cxx.


Member Function Documentation

void msdi_marked_images_from_files::get_image ( ) [private]

Load in current image and generate suitable pyramid.

Definition at line 139 of file msdi_marked_images_from_files.cxx.

void msdi_marked_images_from_files::get_points ( ) [private]

Load in current points.

Definition at line 158 of file msdi_marked_images_from_files.cxx.

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

Return current image.

Implements msdi_marked_images.

Definition at line 81 of file msdi_marked_images_from_files.cxx.

vcl_string msdi_marked_images_from_files::image_name ( ) const [virtual]

Return current image file name.

Implements msdi_marked_images.

Definition at line 172 of file msdi_marked_images_from_files.cxx.

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

Return current image pyramid.

Implements msdi_marked_images.

Definition at line 89 of file msdi_marked_images_from_files.cxx.

bool msdi_marked_images_from_files::next ( ) [virtual]

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

Move to next example.

Implements msdi_marked_images.

Definition at line 126 of file msdi_marked_images_from_files.cxx.

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

points for the current image.

Implements msdi_marked_images.

Definition at line 102 of file msdi_marked_images_from_files.cxx.

vcl_string msdi_marked_images_from_files::points_name ( ) const [virtual]

Return current points file name.

Implements msdi_marked_images.

Definition at line 179 of file msdi_marked_images_from_files.cxx.

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

Pyramid builder to be used.

Definition at line 91 of file msdi_marked_images_from_files.h.

void msdi_marked_images_from_files::reset ( ) [virtual]

Move to start of data.

Set to first example.

Implements msdi_marked_images.

Definition at line 115 of file msdi_marked_images_from_files.cxx.

void msdi_marked_images_from_files::set ( const vcl_string &  image_dir,
const vcl_vector< vcl_string > &  image_names,
const vcl_string &  points_dir,
const vcl_vector< vcl_string > &  points_names 
)

Initialise with directories and filenames.

Definition at line 34 of file msdi_marked_images_from_files.cxx.

void msdi_marked_images_from_files::set ( const vcl_string &  image_dir,
const vcl_vector< vcl_string > &  image_names,
const vcl_string &  points_dir 
)

Initialise with directories and filenames.

points_names[i] is set to image_names[i]+".pts"

Definition at line 52 of file msdi_marked_images_from_files.cxx.

unsigned msdi_marked_images_from_files::size ( ) const [virtual]

Return number of examples this will provide.

Implements msdi_marked_images.

Definition at line 75 of file msdi_marked_images_from_files.cxx.


Member Data Documentation

When true, convert multiplane images to single plane.

Definition at line 28 of file msdi_marked_images_from_files.h.

Current base image.

Definition at line 25 of file msdi_marked_images_from_files.h.

Image directory.

Definition at line 40 of file msdi_marked_images_from_files.h.

vcl_vector<vcl_string> msdi_marked_images_from_files::image_name_ [private]

Image names.

Definition at line 43 of file msdi_marked_images_from_files.h.

True if image_ is current.

Definition at line 31 of file msdi_marked_images_from_files.h.

Current image pyramid.

Definition at line 22 of file msdi_marked_images_from_files.h.

True if image_pyr_ is current.

Definition at line 34 of file msdi_marked_images_from_files.h.

Index of current image.

Definition at line 52 of file msdi_marked_images_from_files.h.

Current points.

Definition at line 19 of file msdi_marked_images_from_files.h.

Points directory.

Definition at line 46 of file msdi_marked_images_from_files.h.

vcl_vector<vcl_string> msdi_marked_images_from_files::points_name_ [private]

Points file names.

Definition at line 49 of file msdi_marked_images_from_files.h.

True if points_ are current.

Definition at line 37 of file msdi_marked_images_from_files.h.

Pyramid builder.

Definition at line 61 of file msdi_marked_images_from_files.h.


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