Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
find_object::FindObject Class Reference

#include <FindObject.h>

Inheritance diagram for find_object::FindObject:
Inheritance graph
[legend]

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 ObjSignatureaddObject (const QString &filePath)
 
const ObjSignatureaddObject (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 Vocabularyvocabulary () 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_
 
Feature2Ddetector_
 
Feature2Dextractor_
 
bool keepImagesInRAM_
 
QMap< int, ObjSignature * > objects_
 
QMap< int, cv::Mat > objectsDescriptors_
 
bool sessionModified_
 
Vocabularyvocabulary_
 

Detailed Description

Definition at line 52 of file FindObject.h.

Constructor & Destructor Documentation

find_object::FindObject::FindObject ( bool  keepImagesInRAM_ = true,
QObject *  parent = 0 
)

Definition at line 47 of file FindObject.cpp.

find_object::FindObject::~FindObject ( )
virtual

Definition at line 70 of file FindObject.cpp.

Member Function Documentation

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.

void find_object::FindObject::addObjectAndUpdate ( const cv::Mat &  image,
int  id = 0,
const QString &  filePath = QString() 
)
slot

Definition at line 327 of file FindObject.cpp.

void find_object::FindObject::affineSkew ( float  tilt,
float  phi,
const cv::Mat &  image,
cv::Mat &  skewImage,
cv::Mat &  skewMask,
cv::Mat &  Ai 
)
static

Definition at line 502 of file FindObject.cpp.

void find_object::FindObject::clearVocabulary ( )
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.

void find_object::FindObject::detect ( const cv::Mat &  image)
slot

Definition at line 1318 of file FindObject.cpp.

bool find_object::FindObject::isSessionModified ( ) const
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.

const QMap<int, ObjSignature*>& find_object::FindObject::objects ( ) const
inline

Definition at line 87 of file FindObject.h.

void find_object::FindObject::objectsFound ( const find_object::DetectionInfo )
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.

void find_object::FindObject::removeObjectAndUpdate ( int  id)
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.

const Vocabulary* find_object::FindObject::vocabulary ( ) const
inline

Definition at line 88 of file FindObject.h.

Member Data Documentation

QMap<int, int> find_object::FindObject::dataRange_
private

Definition at line 105 of file FindObject.h.

Feature2D* find_object::FindObject::detector_
private

Definition at line 106 of file FindObject.h.

Feature2D* find_object::FindObject::extractor_
private

Definition at line 107 of file FindObject.h.

bool find_object::FindObject::keepImagesInRAM_
private

Definition at line 109 of file FindObject.h.

QMap<int, ObjSignature*> find_object::FindObject::objects_
private

Definition at line 102 of file FindObject.h.

QMap<int, cv::Mat> find_object::FindObject::objectsDescriptors_
private

Definition at line 104 of file FindObject.h.

bool find_object::FindObject::sessionModified_
private

Definition at line 108 of file FindObject.h.

Vocabulary* find_object::FindObject::vocabulary_
private

Definition at line 103 of file FindObject.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 19:22:26