Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Member Functions | Private Attributes
jafar::locpano::Engine Class Reference

locpano engine. More...


Detailed Description

locpano engine.

This is the main API to the modules imported from calife.

Definition at line 25 of file engine.hpp.

#include <engine.hpp>

List of all members.

Public Member Functions

 Engine (jafar::camera::CameraParabolicBarreto const &pCam, jafar::image::Image const &initImage, int maxNbImagesInDataBase)
void setImageScale (double imageScale_)
int getNbImages () const
void init (jafar::camera::CameraParabolicBarreto const &pCam, jafar::image::Image const &initImage, int nbImagesInDataBase)
 initImage is only used for initialization, and is not added to the database.
void addImage (jafar::image::Image const &image, bool updateProfile=true)
 add image to the database.
void addImage (jafar::image::Image const &image, int imageIndex, bool updateProfile=true)
 add image to the database, image is known under index imageIndex.
double getImageDistance (jafar::image::Image const &image, int index, bool useProfile=true, int distanceType=3)
 returns the distance of the image index in the database closest to image.
boost::tuple< int, double > getClosestImage (jafar::image::Image const &image, bool useProfile=true, int distanceType=3)
 returns the index and distance of the image in the database closest to image.
boost::tuple< int, double > getClosestImage (jafar::image::Image const &image, int index1, int index2, bool useProfile=true, int distanceType=3)
 returns the index and distance of the image in the database closest to image.

Private Types

typedef std::map< int, int > ImageIndexMap

Private Member Functions

boost::tuple< int, double > getClosestImageWrapper (jafar::image::Image const &image, int internIndex1, int internIndex2, bool useProfile=true, int distanceType=3)

Private Attributes

double imageScale
LocPanoParamsparams
LocPanoInternalinternal
LocPanoDatadataBase
int internalIndex
 internal index of the last image
ImageIndexMap imageIndexInternalToUser
 map internalIndex to userIndex
ImageIndexMap imageIndexUserToInternal

Member Function Documentation

boost::tuple<int, double> jafar::locpano::Engine::getClosestImage ( jafar::image::Image const &  image,
bool  useProfile = true,
int  distanceType = 3 
)

returns the index and distance of the image in the database closest to image.

This method searches for the whole database.

boost::tuple<int, double> jafar::locpano::Engine::getClosestImage ( jafar::image::Image const &  image,
int  index1,
int  index2,
bool  useProfile = true,
int  distanceType = 3 
)

returns the index and distance of the image in the database closest to image.

Parameters:
index1<=0means search from the begining +index1 images
index2<=0means search to the end -index2 imagesb

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:42 for Jafar by doxygen 1.7.6.1
LAAS-CNRS