pose_validation.h
Go to the documentation of this file.
1 
21 #ifndef POSE_VALIDATION_H
22 #define POSE_VALIDATION_H
23 
25 
26 #include <OGRE/Ogre.h>
27 #include <OGRE/OgreException.h>
28 #include <OGRE/OgreRoot.h>
29 
30 #include <HalconCpp.h>
31 
32 #include "object_descriptor.h"
33 #include "recognition_result.h"
34 
35 
36 
38 
43 
44 private:
46  double image_width_;
47 
49  double image_height_;
50 
53 
54 
56  Ogre::Root* root_;
57  Ogre::SceneManager* scene_manager_;
59  Ogre::Camera* camera_;
60  Ogre::SceneNode* camera_node_;
61  Ogre::TexturePtr rtt_texture_;
62  Ogre::RenderTexture* render_texture_;
63  Ogre::RenderWindow *window_;
64 
73  HalconCpp::HImage renderObjectImage(RecognitionResult *recognition_result, Ogre::MeshPtr mesh);
74 
75 
76 public:
77 
82 
89  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);
90 
96  bool isInitialized() const;
97 
107  HalconCpp::HTuple validateObject(ObjectDescriptor *object, RecognitionResult *recognition_result, Ogre::MeshPtr mesh);
108 
118  bool compareHomographyMatrices(HalconCpp::HHomMat2D original, HalconCpp::HHomMat2D rendered, int pose_validation_dist_err);
119 
120 };
121 
122 
123 }
124 
125 #endif
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.
PoseValidation()
The empty constructor of this class.
bool isInitialized() const
Returns whether this object has been initialized.
HalconCpp::HImage renderObjectImage(RecognitionResult *recognition_result, Ogre::MeshPtr mesh)
Renders the given mesh.
HalconCpp::HTuple validateObject(ObjectDescriptor *object, RecognitionResult *recognition_result, Ogre::MeshPtr mesh)
Searches the rendered image for the given object.


asr_descriptor_surface_based_recognition
Author(s): Allgeyer Tobias, Hutmacher Robin, Meißner Pascal
autogenerated on Mon Dec 16 2019 03:31:15