#include <pose_validation.h>
Public Member Functions | |
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. | |
bool | isInitialized () const |
Returns whether this object has been initialized. | |
PoseValidation () | |
The empty constructor of this class. | |
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. | |
HalconCpp::HTuple | validateObject (ObjectDescriptor *object, RecognitionResult *recognition_result, Ogre::MeshPtr mesh) |
Searches the rendered image for the given object. | |
Private Member Functions | |
HalconCpp::HImage | renderObjectImage (RecognitionResult *recognition_result, Ogre::MeshPtr mesh) |
Renders the given mesh. | |
Private Attributes | |
Ogre::Camera * | camera_ |
Ogre::SceneNode * | camera_node_ |
double | image_height_ |
double | image_width_ |
bool | is_initialized_ |
rviz::RenderSystem * | render_sys_ |
Ogre::RenderTexture * | render_texture_ |
Ogre::Root * | root_ |
Ogre::TexturePtr | rtt_texture_ |
Ogre::SceneManager * | scene_manager_ |
Ogre::RenderWindow * | window_ |
This class is used for the validation of found poses
Definition at line 42 of file pose_validation.h.
The empty constructor of this class.
Definition at line 34 of file pose_validation.cpp.
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.
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.
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 |
Definition at line 173 of file pose_validation.cpp.
Returns whether this object has been initialized.
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.
recognition_result | The object containing the information about the found pose |
mesh | The mesh which will be rendered |
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.
object | The object descriptor of the rendered object |
recognition_result | The information about the found pose |
mesh | The mesh which will be rendered |
Definition at line 154 of file pose_validation.cpp.
Ogre::Camera* descriptor_surface_based_recognition::PoseValidation::camera_ [private] |
Definition at line 59 of file pose_validation.h.
Ogre::SceneNode* descriptor_surface_based_recognition::PoseValidation::camera_node_ [private] |
Definition at line 60 of file pose_validation.h.
double descriptor_surface_based_recognition::PoseValidation::image_height_ [private] |
The height of the rendered image
Definition at line 49 of file pose_validation.h.
double descriptor_surface_based_recognition::PoseValidation::image_width_ [private] |
The width of the rendered image
Definition at line 46 of file pose_validation.h.
Indicates whether this object is initialized
Definition at line 52 of file pose_validation.h.
Definition at line 58 of file pose_validation.h.
Ogre::RenderTexture* descriptor_surface_based_recognition::PoseValidation::render_texture_ [private] |
Definition at line 62 of file pose_validation.h.
Ogre::Root* descriptor_surface_based_recognition::PoseValidation::root_ [private] |
Ogre variables used for the rendering of the image
Definition at line 56 of file pose_validation.h.
Ogre::TexturePtr descriptor_surface_based_recognition::PoseValidation::rtt_texture_ [private] |
Definition at line 61 of file pose_validation.h.
Ogre::SceneManager* descriptor_surface_based_recognition::PoseValidation::scene_manager_ [private] |
Definition at line 57 of file pose_validation.h.
Ogre::RenderWindow* descriptor_surface_based_recognition::PoseValidation::window_ [private] |
Definition at line 63 of file pose_validation.h.