|
vocabtree
0.0.1
|
SimpleImage class used with the SimpleDataset class. More...
#include <dataset.hpp>


Public Member Functions | |
| SimpleImage (const std::string &path, uint64_t imageid) | |
| Constructs a SimpleImage given the Image relative path in the Dataset directory, and a corresponding unique image ID. More... | |
| std::string | feature_path (const std::string &feat_name) const |
| Returns the corresponding feature path given a feature name (ex. "sift"). More... | |
| std::string | location () const |
| Returns the image location relative to the database data directory. More... | |
Public Member Functions inherited from Image | |
| Image (uint64_t image_id) | |
| virtual | ~Image () |
| All images are assigned a unique id in the dataset. More... | |
Protected Attributes | |
| std::string | image_path |
Additional Inherited Members | |
Data Fields inherited from Image | |
| uint64_t | id |
SimpleImage class used with the SimpleDataset class.
Features are stored in <data_dir>/<feats>/<feat_name>
Definition at line 82 of file dataset.hpp.
| SimpleDataset::SimpleImage::SimpleImage | ( | const std::string & | path, |
| uint64_t | imageid | ||
| ) |
Constructs a SimpleImage given the Image relative path in the Dataset directory, and a corresponding unique image ID.
Definition at line 126 of file dataset.cxx.
References image_path.
|
virtual |
Returns the corresponding feature path given a feature name (ex. "sift").
Implements Image.
Definition at line 130 of file dataset.cxx.
|
virtual |
Returns the image location relative to the database data directory.
Implements Image.
Definition at line 143 of file dataset.cxx.
Referenced by bench_oxford(), compute_features(), main(), and SimpleDataset::write().
|
protected |
Definition at line 95 of file dataset.hpp.
Referenced by SimpleImage().