Public Member Functions | Protected Member Functions | Protected Attributes
SurfPlanarDetector Class Reference

#include <SurfPlanarDetector.h>

Inheritance diagram for SurfPlanarDetector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void detect (ObjectDetectorMethod::DetectionData &data, ObjectModel &model, re_msgs::DetectedObject &detection)
 SurfPlanarDetector ()
virtual ~SurfPlanarDetector ()

Protected Member Functions

bool alignedPoints (const ObjectModel::Face &face, const std::vector< int > indices) const
bool detectWithHomography (const SurfSet &scene_surfset, ObjectModel &model, ObjectModel::Face &face, const std::vector< int > &model_indices, const std::vector< int > &scene_indices, const std::vector< float > &distances, const ObjectDetectorMethod::DetectionData &data, const double maxReprojectionError, bool doReChecking, re_msgs::DetectedObject &detection)

Protected Attributes

std::string m_debug_prefix
 times ::detect has been called
int m_detect_counter

Detailed Description

Definition at line 48 of file SurfPlanarDetector.h.


Constructor & Destructor Documentation

Definition at line 53 of file SurfPlanarDetector.h.

virtual SurfPlanarDetector::~SurfPlanarDetector ( ) [inline, virtual]

Definition at line 58 of file SurfPlanarDetector.h.


Member Function Documentation

bool SurfPlanarDetector::alignedPoints ( const ObjectModel::Face face,
const std::vector< int >  indices 
) const [protected]

Checks if a set of points are aligned in the 3D space

Parameters:
face
indicesindices of 3D face points to check
Returns:
true iif points aligned

Definition at line 189 of file SurfPlanarDetector.cpp.

Tries to detect in the given data the given model. Results are stored in detection

Parameters:
data
modelmodel to search for
detectionresults
See also:
ObjectDetectorMethod::detect

Implements ObjectDetectorMethod.

Definition at line 76 of file SurfPlanarDetector.cpp.

bool SurfPlanarDetector::detectWithHomography ( const SurfSet scene_surfset,
ObjectModel model,
ObjectModel::Face face,
const std::vector< int > &  model_indices,
const std::vector< int > &  scene_indices,
const std::vector< float > &  distances,
const ObjectDetectorMethod::DetectionData data,
const double  maxReprojectionError,
bool  doReChecking,
re_msgs::DetectedObject detection 
) [protected]

Given the correspondences between the scene and the model, tries to detect the object with an homography

Parameters:
scene_surfsetsurfs from the original image
modelmodel checked
faceface of the model checked
model_indicesindices of model keypoints matched
scene_indicesindices of scene keypoints matched
distancesdistances between the matched keypoint descriptors
datacommon detection data
maxReprojectionErrormax reprojection error to accept a reprojected point as an inlier
doReCheckingif true, the algorithm is run again with the inliers got in the first iteration and with a smaller maxReprojectionError
detectionplace to put the results in
Returns:
true iif the model can be detected

Definition at line 222 of file SurfPlanarDetector.cpp.


Member Data Documentation

std::string SurfPlanarDetector::m_debug_prefix [protected]

times ::detect has been called

Definition at line 112 of file SurfPlanarDetector.h.

Definition at line 111 of file SurfPlanarDetector.h.


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


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:26