vocabtree  0.0.1
Image Class Referenceabstract

Abstract class representing an image. More...

#include <image.hpp>

Inheritance diagram for Image:

Public Member Functions

 Image (uint64_t image_id)
 
virtual ~Image ()
 All images are assigned a unique id in the dataset. More...
 
virtual std::string feature_path (const std::string &feat_name) const =0
 Returns the corresponding feature path given a feature name (ex. "sift"). More...
 
virtual std::string location () const =0
 Returns the image location relative to the database data directory. More...
 

Data Fields

uint64_t id
 

Detailed Description

Abstract class representing an image.

Implementing classes must provide a way to load images and construct image paths for loading features. See tests and benchmarks for example implementations of Image.

Definition at line 10 of file image.hpp.

Constructor & Destructor Documentation

Image::Image ( uint64_t  image_id)

Definition at line 5 of file image.cxx.

5  {
6  id = imageid;
7 }
Image::~Image ( )
virtual

All images are assigned a unique id in the dataset.

Definition at line 9 of file image.cxx.

9 { }

Member Function Documentation

virtual std::string Image::feature_path ( const std::string &  feat_name) const
pure virtual

Returns the corresponding feature path given a feature name (ex. "sift").

Implemented in SimpleDataset::SimpleImage.

virtual std::string Image::location ( ) const
pure virtual

Returns the image location relative to the database data directory.

Implemented in SimpleDataset::SimpleImage.

Field Documentation

uint64_t Image::id

Definition at line 14 of file image.hpp.


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