#include <image_database.h>
Classes | |
| struct | ltstr |
Public Types | |
| typedef vcl_multimap< const char *, vil1_memory_image *, ltstr >::iterator | iterator |
| typedef vcl_multimap< const char *, vil1_memory_image *, ltstr >::const_iterator | const_iterator |
| typedef vcl_pair< const char *, vil1_memory_image * > | value_type |
Public Member Functions | |
| ImageDatabase () | |
| ~ImageDatabase () | |
| destructor. | |
| iterator | insert (const char *label, vil1_memory_image *image) |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| vcl_pair< iterator, iterator > | equal_range (const char *&label) |
| vcl_pair< const_iterator, const_iterator > | equal_range (const char *&label) const |
| bool | label_exists (const char *label) const |
| void | clear () |
| clear. | |
| bool | save (const char *name, const char *imagetype) |
| save. | |
| bool | load (const char *name) |
| load. | |
Private Attributes | |
| vcl_multimap< const char *, vil1_memory_image *, ltstr > | image_db |
Definition at line 30 of file image_database.h.
| typedef vcl_multimap<const char*, vil1_memory_image *, ltstr>::const_iterator ImageDatabase::const_iterator |
Definition at line 46 of file image_database.h.
| typedef vcl_multimap<const char*, vil1_memory_image *, ltstr>::iterator ImageDatabase::iterator |
Definition at line 45 of file image_database.h.
| typedef vcl_pair<const char *, vil1_memory_image *> ImageDatabase::value_type |
Definition at line 47 of file image_database.h.
| ImageDatabase::ImageDatabase | ( | ) | [inline] |
Definition at line 49 of file image_database.h.
| ImageDatabase::~ImageDatabase | ( | ) |
destructor.
Iterate through all images in the database and delete them.
Definition at line 39 of file image_database.cxx.
| iterator ImageDatabase::begin | ( | ) | [inline] |
Definition at line 54 of file image_database.h.
| const_iterator ImageDatabase::begin | ( | ) | const [inline] |
Definition at line 56 of file image_database.h.
| void ImageDatabase::clear | ( | ) |
clear.
clear all the images from the database (deletion is performed)
Definition at line 50 of file image_database.cxx.
| iterator ImageDatabase::end | ( | ) | [inline] |
Definition at line 55 of file image_database.h.
| const_iterator ImageDatabase::end | ( | ) | const [inline] |
Definition at line 57 of file image_database.h.
Definition at line 58 of file image_database.h.
| vcl_pair<const_iterator, const_iterator> ImageDatabase::equal_range | ( | const char *& | label | ) | const [inline] |
Definition at line 60 of file image_database.h.
| iterator ImageDatabase::insert | ( | const char * | label, |
| vil1_memory_image * | image | ||
| ) | [inline] |
Definition at line 51 of file image_database.h.
| bool ImageDatabase::label_exists | ( | const char * | label | ) | const [inline] |
Definition at line 62 of file image_database.h.
| bool ImageDatabase::load | ( | const char * | name | ) |
load.
Load a database from file.
| name | the name of the database file (a directory called name.d should also exist). |
Definition at line 121 of file image_database.cxx.
| bool ImageDatabase::save | ( | const char * | name, |
| const char * | imagetype | ||
| ) |
save.
Save all images in the database. To do this, I create a single database file that has a list of label/filename pairs. I also create a subdirectory in which all the images are stored. The images are stored based on the imagetype parameter, which should be the extension of a valid image file type (eg "ppm", "pgm", "png", etc).
| name | the name of the database file (a directory called name.d is also created). |
| imagetype | a valid file extension type (eg "ppm"); |
Definition at line 75 of file image_database.cxx.
vcl_multimap<const char*, vil1_memory_image *, ltstr> ImageDatabase::image_db [private] |
Definition at line 41 of file image_database.h.
1.7.5.1