#include <FindObject.h>
Public Slots | |
void | addObjectAndUpdate (const cv::Mat &image, int id=0, const QString &filePath=QString()) |
void | detect (const cv::Mat &image) |
void | removeObjectAndUpdate (int id) |
Signals | |
void | objectsFound (const find_object::DetectionInfo &) |
Public Member Functions | |
const ObjSignature * | addObject (const QString &filePath) |
const ObjSignature * | addObject (const cv::Mat &image, int id=0, const QString &filePath=QString()) |
bool | addObject (ObjSignature *obj) |
bool | detect (const cv::Mat &image, find_object::DetectionInfo &info) const |
FindObject (bool keepImagesInRAM_=true, QObject *parent=0) | |
bool | isSessionModified () const |
int | loadObjects (const QString &dirPath, bool recursive=false) |
bool | loadSession (const QString &path) |
bool | loadVocabulary (const QString &filePath) |
const QMap< int, ObjSignature * > & | objects () const |
void | removeAllObjects () |
void | removeObject (int id) |
bool | saveSession (const QString &path) |
bool | saveVocabulary (const QString &filePath) const |
void | updateDetectorExtractor () |
void | updateObjects (const QList< int > &ids=QList< int >()) |
void | updateVocabulary (const QList< int > &ids=QList< int >()) |
const Vocabulary * | vocabulary () const |
virtual | ~FindObject () |
Static Public Member Functions | |
static void | affineSkew (float tilt, float phi, const cv::Mat &image, cv::Mat &skewImage, cv::Mat &skewMask, cv::Mat &Ai) |
Private Member Functions | |
void | clearVocabulary () |
Private Attributes | |
QMap< int, int > | dataRange_ |
Feature2D * | detector_ |
Feature2D * | extractor_ |
bool | keepImagesInRAM_ |
QMap< int, ObjSignature * > | objects_ |
QMap< int, cv::Mat > | objectsDescriptors_ |
bool | sessionModified_ |
Vocabulary * | vocabulary_ |
Definition at line 52 of file FindObject.h.
find_object::FindObject::FindObject | ( | bool | keepImagesInRAM_ = true , |
QObject * | parent = 0 |
||
) |
Definition at line 47 of file FindObject.cpp.
|
virtual |
Definition at line 70 of file FindObject.cpp.
const ObjSignature * find_object::FindObject::addObject | ( | const QString & | filePath | ) |
Definition at line 227 of file FindObject.cpp.
const ObjSignature * find_object::FindObject::addObject | ( | const cv::Mat & | image, |
int | id = 0 , |
||
const QString & | filePath = QString() |
||
) |
Definition at line 278 of file FindObject.cpp.
bool find_object::FindObject::addObject | ( | ObjSignature * | obj | ) |
Definition at line 290 of file FindObject.cpp.
|
slot |
Definition at line 327 of file FindObject.cpp.
|
static |
Definition at line 502 of file FindObject.cpp.
|
private |
Definition at line 882 of file FindObject.cpp.
bool find_object::FindObject::detect | ( | const cv::Mat & | image, |
find_object::DetectionInfo & | info | ||
) | const |
Definition at line 1352 of file FindObject.cpp.
|
slot |
Definition at line 1318 of file FindObject.cpp.
|
inline |
Definition at line 69 of file FindObject.h.
int find_object::FindObject::loadObjects | ( | const QString & | dirPath, |
bool | recursive = false |
||
) |
Definition at line 180 of file FindObject.cpp.
bool find_object::FindObject::loadSession | ( | const QString & | path | ) |
Definition at line 77 of file FindObject.cpp.
bool find_object::FindObject::loadVocabulary | ( | const QString & | filePath | ) |
Definition at line 162 of file FindObject.cpp.
|
inline |
Definition at line 87 of file FindObject.h.
|
signal |
void find_object::FindObject::removeAllObjects | ( | ) |
Definition at line 320 of file FindObject.cpp.
void find_object::FindObject::removeObject | ( | int | id | ) |
Definition at line 310 of file FindObject.cpp.
|
slot |
Definition at line 339 of file FindObject.cpp.
bool find_object::FindObject::saveSession | ( | const QString & | path | ) |
Definition at line 129 of file FindObject.cpp.
bool find_object::FindObject::saveVocabulary | ( | const QString & | filePath | ) | const |
Definition at line 157 of file FindObject.cpp.
void find_object::FindObject::updateDetectorExtractor | ( | ) |
Definition at line 349 of file FindObject.cpp.
void find_object::FindObject::updateObjects | ( | const QList< int > & | ids = QList<int>() | ) |
Definition at line 797 of file FindObject.cpp.
void find_object::FindObject::updateVocabulary | ( | const QList< int > & | ids = QList<int>() | ) |
Definition at line 889 of file FindObject.cpp.
|
inline |
Definition at line 88 of file FindObject.h.
|
private |
Definition at line 105 of file FindObject.h.
|
private |
Definition at line 106 of file FindObject.h.
|
private |
Definition at line 107 of file FindObject.h.
|
private |
Definition at line 109 of file FindObject.h.
|
private |
Definition at line 102 of file FindObject.h.
|
private |
Definition at line 104 of file FindObject.h.
|
private |
Definition at line 108 of file FindObject.h.
|
private |
Definition at line 103 of file FindObject.h.