pose_recognition.h
Go to the documentation of this file.
1 
21 #ifndef POSE_RECOGNITION_H
22 #define POSE_RECOGNITION_H
23 
24 #include <HalconCpp.h>
25 #include <pcl/point_cloud.h>
26 #include <pcl/point_types.h>
27 
28 
29 #include "object_descriptor.h"
30 #include "recognition_result.h"
31 
32 
33 
34 
36 
41 
42 private:
43 
45  HalconCpp::HImage scene_image_;
46 
48  HalconCpp::HImage scene_image_mono_;
49 
51  pcl::PointCloud<pcl::PointXYZ>::Ptr point_cloud_with_guppy_;
52 
55 
58 
61 
64 
67 
69  std::vector<RecognitionResult*> results_;
70 
72  bool eval_;
73 
74 
78  void findTexture();
79 
85  bool reducePointCloud(int result_index);
86 
92  bool findModelInCloud(int result_index);
93 
99  void adjustRotation(int result_index);
100 
101 public:
102 
115  PoseRecognition(HalconCpp::HImage &scene_image, HalconCpp::HImage &scene_image_mono, pcl::PointCloud<pcl::PointXYZ>::Ptr &point_cloud_with_guppy, ObjectDescriptor *obj_desc, int median_points_offset, double samplingDistance, double keypointFraction, bool eval, int max_instances = 1);
116 
120  virtual ~PoseRecognition();
121 
125  void findPoses();
126 
130  std::vector<RecognitionResult*> getResults() const;
132  HalconCpp::HRegion getInputImageDomain() const;
133 };
134 
135 
136 }
137 
138 #endif
std::vector< RecognitionResult * > getResults() const
PoseRecognition(HalconCpp::HImage &scene_image, HalconCpp::HImage &scene_image_mono, pcl::PointCloud< pcl::PointXYZ >::Ptr &point_cloud_with_guppy, ObjectDescriptor *obj_desc, int median_points_offset, double samplingDistance, double keypointFraction, bool eval, int max_instances=1)
The constructor of this class.
bool reducePointCloud(int result_index)
Prepares the 3D-recognition by reducing the point cloud depending on the 2D-recognition result...
pcl::PointCloud< pcl::PointXYZ >::Ptr point_cloud_with_guppy_
void findPoses()
Recognizes the present object instances in the scene.
bool findModelInCloud(int result_index)
Recognizes the object in the reduced 3D-scene.
void findTexture()
Recognizes the object in the 2D-scene.
virtual ~PoseRecognition()
The destructor of this class.
void adjustRotation(int result_index)
Adjusts the rotation of the found object instance depending on its rotation-type. ...


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