21 #ifndef POSE_VALIDATION_H 22 #define POSE_VALIDATION_H 26 #include <OGRE/Ogre.h> 27 #include <OGRE/OgreException.h> 28 #include <OGRE/OgreRoot.h> 30 #include <HalconCpp.h> 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);
118 bool compareHomographyMatrices(HalconCpp::HHomMat2D original, HalconCpp::HHomMat2D rendered,
int pose_validation_dist_err);
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.
Ogre::RenderWindow * window_
Ogre::SceneManager * scene_manager_
PoseValidation()
The empty constructor of this class.
bool isInitialized() const
Returns whether this object has been initialized.
Ogre::SceneNode * camera_node_
Ogre::TexturePtr rtt_texture_
Ogre::RenderTexture * render_texture_
rviz::RenderSystem * render_sys_
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.