Public Member Functions | Private Member Functions | Private Attributes
CTexturedRecognition Class Reference

#include <TexturedRecognition.h>

List of all members.

Public Member Functions

 CTexturedRecognition (int nImageWidth, int nImageHeight, float fSIFTThreshold=0)
void DoRecognition (const CByteImage *const *ppInputImages, CByteImage **ppResultImages, bool bLocalizeWithStereo=false, int nUseKdTree=0, bool bInputImagesAreUndistorted=false)
void DoRecognitionSingleObject (const CByteImage *const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName, bool bLocalizeWithStereo=false, int nUseKdTree=0, bool bInputImagesAreUndistorted=false)
const Object3DListGetObject3DList ()
CTexturedObjectDatabaseGetObjectDatabase ()
bool Init (const char *pObjectDatabaseFilePath, const char *pCameraParameterFileName=0, const char *pDataFilePath=0)
bool Init (const char *pObjectDatabaseFilePath, CStereoCalibration *pStereoCalibration, bool bCloneCalibration, const char *pDataFilePath=0)
void SetQualityThreshold (float fQualityThreshold)
void SetRecognitionThresholds (int nMinValidFeatures, float fMaxError)
void SetStereo (bool bStereo)
void SetVerbose (bool bVerbose)
 ~CTexturedRecognition ()

Private Member Functions

void _DoRecognition (const CByteImage *const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName, bool bLocalizeWithStereo, int nUseKdTree, bool bInputImagesAreUndistorted)

Private Attributes

bool m_bVerbose
int m_nImageHeight
int m_nImageWidth
CHarrisSIFTFeatureCalculatorm_pFeatureCalculator
CTexturedObjectDatabasem_pObjectDatabase
CByteImagem_ppGrayImages [2]

Detailed Description

Definition at line 40 of file TexturedRecognition.h.


Constructor & Destructor Documentation

CTexturedRecognition::CTexturedRecognition ( int  nImageWidth,
int  nImageHeight,
float  fSIFTThreshold = 0 
)

Construct CTexturedRecognition

Parameters:
nImageWidthwidth of image
nImageHeightheight of image
fSIFTThresholdthreshold for extracting harris interest points (default is 0.01)

Member Function Documentation

void CTexturedRecognition::_DoRecognition ( const CByteImage *const *  ppInputImages,
CByteImage **  ppResultImages,
const char *  pObjectName,
bool  bLocalizeWithStereo,
int  nUseKdTree,
bool  bInputImagesAreUndistorted 
) [private]
void CTexturedRecognition::DoRecognition ( const CByteImage *const *  ppInputImages,
CByteImage **  ppResultImages,
bool  bLocalizeWithStereo = false,
int  nUseKdTree = 0,
bool  bInputImagesAreUndistorted = false 
)

Do recognition of all known objects

Parameters:
ppInputImagesleft and right RGB images in the correct size
ppResultImagesvisualization images can be NULL
bLocalizeWithStereoneeds to be true of stereo localization is used
See also:
SetStereo()
Parameters:
nUseKdTreewhether to use KdTree for search (default is 0 - no)
bInputImagesAreUndistortedwhether input images have been undistorted
void CTexturedRecognition::DoRecognitionSingleObject ( const CByteImage *const *  ppInputImages,
CByteImage **  ppResultImages,
const char *  pObjectName,
bool  bLocalizeWithStereo = false,
int  nUseKdTree = 0,
bool  bInputImagesAreUndistorted = false 
)

Do recognition of all known objects

Parameters:
ppInputImagesleft and right RGB images in the correct size
ppResultImagesvisualization images can be NULL
pObjectNamename of the object to recognize
bLocalizeWithStereoneeds to be true of stereo localization is used
See also:
SetStereo()
Parameters:
nUseKdTreewhether to use KdTree for search (default is 0 - no)
bInputImagesAreUndistortedwhether input images have been undistorted

Retrieve objects recognized in the last recognition step

Returns:
list of Object3DEntry containing recognized objects

Retrieve object database

Returns:
object database

Definition at line 141 of file TexturedRecognition.h.

bool CTexturedRecognition::Init ( const char *  pObjectDatabaseFilePath,
const char *  pCameraParameterFileName = 0,
const char *  pDataFilePath = 0 
)

Init textured recognition and load calibration from file

Parameters:
pObjectDatabaseFilePathrelative or absolute path to configuration file for textured recognition
pCameraParameterFileNamerelative or absolute path to camera calibration file
pDataFilePathPrefixpath prefix for entries in configuration file
bool CTexturedRecognition::Init ( const char *  pObjectDatabaseFilePath,
CStereoCalibration pStereoCalibration,
bool  bCloneCalibration,
const char *  pDataFilePath = 0 
)

Init textured recognition

Parameters:
pObjectDatabaseFilePathrelative or absolute path to configuration file for textured recognition
pStereoCalibrationpointer to stereo calibration
pDataFilePathPrefixpath prefix for entries in configuration file
void CTexturedRecognition::SetQualityThreshold ( float  fQualityThreshold)

Set quality threshold for Harris interest point calculation (defaults to 0.01). Smaller means more features.

Parameters:
fQualityThresholdthe quality threshols
void CTexturedRecognition::SetRecognitionThresholds ( int  nMinValidFeatures,
float  fMaxError 
)

Set recognition threshold

Parameters:
nMinValidFeaturesminimum number of features in Houghspace (default is 10)
fMaxErrormaximum error after application of homography on valid features (default is 3.3f)

Set stereo localization (default is true).

Parameters:
bStereo3D-3D localization if true - 2D-3D localization if false

Enable verbose mode

Parameters:
bVerbosemake textured recognition verbose

Member Data Documentation

Definition at line 158 of file TexturedRecognition.h.

Definition at line 156 of file TexturedRecognition.h.

Definition at line 155 of file TexturedRecognition.h.

Definition at line 151 of file TexturedRecognition.h.

Definition at line 150 of file TexturedRecognition.h.

Definition at line 153 of file TexturedRecognition.h.


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


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Thu Jun 6 2019 21:46:58