|
Jafar
|
locpano engine. More...
locpano engine.
This is the main API to the modules imported from calife.
Definition at line 25 of file engine.hpp.
#include <engine.hpp>
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 |
| LocPanoParams * | params |
| LocPanoInternal * | internal |
| LocPanoData * | dataBase |
| int | internalIndex |
| internal index of the last image | |
| ImageIndexMap | imageIndexInternalToUser |
| map internalIndex to userIndex | |
| ImageIndexMap | imageIndexUserToInternal |
| 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.
| index1<=0 | means search from the begining +index1 images |
| index2<=0 | means search to the end -index2 imagesb |
| Generated on Wed Oct 15 2014 00:37:42 for Jafar by doxygen 1.7.6.1 |
|