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 detect (const cv::Mat &image, const find_object::Header &header, const cv::Mat &depth, float depthConstant)
 
void removeObjectAndUpdate (int id)
 

Signals

void objectsFound (const find_object::DetectionInfo &, const find_object::Header &, const cv::Mat &, float)
 

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, const ParametersMap &customParameters=ParametersMap())
 
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 53 of file FindObject.h.

Constructor & Destructor Documentation

◆ FindObject()

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

Definition at line 51 of file FindObject.cpp.

◆ ~FindObject()

find_object::FindObject::~FindObject ( )
virtual

Definition at line 75 of file FindObject.cpp.

Member Function Documentation

◆ addObject() [1/3]

const ObjSignature * find_object::FindObject::addObject ( const QString &  filePath)

Definition at line 283 of file FindObject.cpp.

◆ addObject() [2/3]

const ObjSignature * find_object::FindObject::addObject ( const cv::Mat &  image,
int  id = 0,
const QString &  filePath = QString() 
)

Definition at line 334 of file FindObject.cpp.

◆ addObject() [3/3]

bool find_object::FindObject::addObject ( ObjSignature obj)

Definition at line 346 of file FindObject.cpp.

◆ addObjectAndUpdate

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

Definition at line 383 of file FindObject.cpp.

◆ affineSkew()

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 558 of file FindObject.cpp.

◆ clearVocabulary()

void find_object::FindObject::clearVocabulary ( )
private

Definition at line 943 of file FindObject.cpp.

◆ detect() [1/3]

bool find_object::FindObject::detect ( const cv::Mat &  image,
find_object::DetectionInfo info 
) const

Definition at line 1424 of file FindObject.cpp.

◆ detect [2/3]

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

Definition at line 1385 of file FindObject.cpp.

◆ detect [3/3]

void find_object::FindObject::detect ( const cv::Mat &  image,
const find_object::Header header,
const cv::Mat &  depth,
float  depthConstant 
)
slot

Definition at line 1390 of file FindObject.cpp.

◆ isSessionModified()

bool find_object::FindObject::isSessionModified ( ) const
inline

Definition at line 70 of file FindObject.h.

◆ loadObjects()

int find_object::FindObject::loadObjects ( const QString &  dirPath,
bool  recursive = false 
)

Definition at line 236 of file FindObject.cpp.

◆ loadSession()

bool find_object::FindObject::loadSession ( const QString &  path,
const ParametersMap customParameters = ParametersMap() 
)

Definition at line 82 of file FindObject.cpp.

◆ loadVocabulary()

bool find_object::FindObject::loadVocabulary ( const QString &  filePath)

Definition at line 196 of file FindObject.cpp.

◆ objects()

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

Definition at line 88 of file FindObject.h.

◆ objectsFound

void find_object::FindObject::objectsFound ( const find_object::DetectionInfo ,
const find_object::Header ,
const cv::Mat &  ,
float   
)
signal

◆ removeAllObjects()

void find_object::FindObject::removeAllObjects ( )

Definition at line 376 of file FindObject.cpp.

◆ removeObject()

void find_object::FindObject::removeObject ( int  id)

Definition at line 366 of file FindObject.cpp.

◆ removeObjectAndUpdate

void find_object::FindObject::removeObjectAndUpdate ( int  id)
slot

Definition at line 395 of file FindObject.cpp.

◆ saveSession()

bool find_object::FindObject::saveSession ( const QString &  path)

Definition at line 144 of file FindObject.cpp.

◆ saveVocabulary()

bool find_object::FindObject::saveVocabulary ( const QString &  filePath) const

Definition at line 172 of file FindObject.cpp.

◆ updateDetectorExtractor()

void find_object::FindObject::updateDetectorExtractor ( )

Definition at line 405 of file FindObject.cpp.

◆ updateObjects()

void find_object::FindObject::updateObjects ( const QList< int > &  ids = QList<int>())

Definition at line 856 of file FindObject.cpp.

◆ updateVocabulary()

void find_object::FindObject::updateVocabulary ( const QList< int > &  ids = QList<int>())

Definition at line 950 of file FindObject.cpp.

◆ vocabulary()

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

Definition at line 89 of file FindObject.h.

Member Data Documentation

◆ dataRange_

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

Definition at line 107 of file FindObject.h.

◆ detector_

Feature2D* find_object::FindObject::detector_
private

Definition at line 108 of file FindObject.h.

◆ extractor_

Feature2D* find_object::FindObject::extractor_
private

Definition at line 109 of file FindObject.h.

◆ keepImagesInRAM_

bool find_object::FindObject::keepImagesInRAM_
private

Definition at line 111 of file FindObject.h.

◆ objects_

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

Definition at line 104 of file FindObject.h.

◆ objectsDescriptors_

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

Definition at line 106 of file FindObject.h.

◆ sessionModified_

bool find_object::FindObject::sessionModified_
private

Definition at line 110 of file FindObject.h.

◆ vocabulary_

Vocabulary* find_object::FindObject::vocabulary_
private

Definition at line 105 of file FindObject.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10