#include <pose_validation.h>
|
bool | compareHomographyMatrices (HalconCpp::HHomMat2D original, HalconCpp::HHomMat2D rendered, int pose_validation_dist_err) |
| Compares the given matrices and returns whether they describe the same projection. More...
|
|
bool | isInitialized () const |
| Returns whether this object has been initialized. More...
|
|
| PoseValidation () |
| The empty constructor of this class. More...
|
|
| PoseValidation (double image_width, double image_height, double far_plane, double near_plane, double cx, double cy, double fx, double fy, int render_width, int render_height) |
| The constructor of this class. More...
|
|
HalconCpp::HTuple | validateObject (ObjectDescriptor *object, RecognitionResult *recognition_result, Ogre::MeshPtr mesh) |
| Searches the rendered image for the given object. More...
|
|
This class is used for the validation of found poses
Definition at line 42 of file pose_validation.h.
descriptor_surface_based_recognition::PoseValidation::PoseValidation |
( |
| ) |
|
descriptor_surface_based_recognition::PoseValidation::PoseValidation |
( |
double |
image_width, |
|
|
double |
image_height, |
|
|
double |
far_plane, |
|
|
double |
near_plane, |
|
|
double |
cx, |
|
|
double |
cy, |
|
|
double |
fx, |
|
|
double |
fy, |
|
|
int |
render_width, |
|
|
int |
render_height |
|
) |
| |
The constructor of this class.
- Parameters
-
image_width | The width of the rendered image |
image_height | The height of the rendered image |
Definition at line 39 of file pose_validation.cpp.
bool descriptor_surface_based_recognition::PoseValidation::compareHomographyMatrices |
( |
HalconCpp::HHomMat2D |
original, |
|
|
HalconCpp::HHomMat2D |
rendered, |
|
|
int |
pose_validation_dist_err |
|
) |
| |
Compares the given matrices and returns whether they describe the same projection.
- Parameters
-
original | The matrix which was found in the original image |
rendered | The matrix which was found in the rendered image |
poseValidationDistanceError | The maximum distance two points transformed with the given matrices may have |
- Returns
- True if the matrices describe the same projection, false otherwise
Definition at line 173 of file pose_validation.cpp.
bool descriptor_surface_based_recognition::PoseValidation::isInitialized |
( |
| ) |
const |
Returns whether this object has been initialized.
- Parameters
-
True | if initialized, false otherwise |
Definition at line 111 of file pose_validation.cpp.
HalconCpp::HImage descriptor_surface_based_recognition::PoseValidation::renderObjectImage |
( |
RecognitionResult * |
recognition_result, |
|
|
Ogre::MeshPtr |
mesh |
|
) |
| |
|
private |
Renders the given mesh.
- Parameters
-
recognition_result | The object containing the information about the found pose |
mesh | The mesh which will be rendered |
- Returns
- The rendered image
Definition at line 116 of file pose_validation.cpp.
HalconCpp::HTuple descriptor_surface_based_recognition::PoseValidation::validateObject |
( |
ObjectDescriptor * |
object, |
|
|
RecognitionResult * |
recognition_result, |
|
|
Ogre::MeshPtr |
mesh |
|
) |
| |
Searches the rendered image for the given object.
- Parameters
-
object | The object descriptor of the rendered object |
recognition_result | The information about the found pose |
mesh | The mesh which will be rendered |
- Returns
- The found projection matrix as a HalconCpp::HTuple (empty if no object was found)
Definition at line 154 of file pose_validation.cpp.
Ogre::Camera* descriptor_surface_based_recognition::PoseValidation::camera_ |
|
private |
Ogre::SceneNode* descriptor_surface_based_recognition::PoseValidation::camera_node_ |
|
private |
double descriptor_surface_based_recognition::PoseValidation::image_height_ |
|
private |
double descriptor_surface_based_recognition::PoseValidation::image_width_ |
|
private |
bool descriptor_surface_based_recognition::PoseValidation::is_initialized_ |
|
private |
Ogre::RenderTexture* descriptor_surface_based_recognition::PoseValidation::render_texture_ |
|
private |
Ogre::Root* descriptor_surface_based_recognition::PoseValidation::root_ |
|
private |
Ogre::TexturePtr descriptor_surface_based_recognition::PoseValidation::rtt_texture_ |
|
private |
Ogre::SceneManager* descriptor_surface_based_recognition::PoseValidation::scene_manager_ |
|
private |
Ogre::RenderWindow* descriptor_surface_based_recognition::PoseValidation::window_ |
|
private |
The documentation for this class was generated from the following files: