Finds a supporting plane (e.g. a table top or a wall) in a polygon array. More...
#include <supporting_plane_extraction.h>
Public Member Functions | |
| bool | getSupportingPlane (std::vector< Polygon::Ptr > &polys, Polygon &sp) |
| Extract the supporting plane from a polygon array. | |
| void | setAreaMax (double area_max) |
| Set the maximum threshold for the area of the supporting plane. | |
| void | setAreaMin (double area_min) |
| Set the minimum threshold for the area of the supporting plane. | |
| void | setDistanceMax (double distance_max) |
| Set the maximum threshold for the distance from the supporting plane to the view point. | |
| void | setDistanceMin (double distance_min) |
| Set the minimum threshold for the distance from the supporting plane to the view point. | |
| SupportingPlaneExtraction () | |
| Constructor. | |
| ~SupportingPlaneExtraction () | |
| Destructor. | |
Protected Attributes | |
| double | area_max_ |
| The maximum area of the supporting plane. | |
| double | area_min_ |
| The minimum area of the supporting plane. | |
| double | distance_max_ |
| The minimum distance between supporting plane an view point. | |
| double | distance_min_ |
| The minimum distance between supporting plane an view point. | |
Finds a supporting plane (e.g. a table top or a wall) in a polygon array.
The supporting plane has an area the lies between a user-definied minimum and maximum value and has to be in a certain distance range from the view point. The algorithm only works if a dominant plane exists in the array. Works best with a polygon array defined in camera coordinates.
Definition at line 89 of file supporting_plane_extraction.h.
| SupportingPlaneExtraction::SupportingPlaneExtraction | ( | ) | [inline] |
| bool SupportingPlaneExtraction::getSupportingPlane | ( | std::vector< Polygon::Ptr > & | polys, |
| Polygon & | sp | ||
| ) |
Extract the supporting plane from a polygon array.
| [in] | polys | The polygon array to be evaluated. |
| [out] | sp | The supporting plane |
Definition at line 61 of file supporting_plane_extraction.cpp.
| void SupportingPlaneExtraction::setAreaMax | ( | double | area_max | ) | [inline] |
Set the maximum threshold for the area of the supporting plane.
| area_max | The maximum threshold. |
Definition at line 155 of file supporting_plane_extraction.h.
| void SupportingPlaneExtraction::setAreaMin | ( | double | area_min | ) | [inline] |
Set the minimum threshold for the area of the supporting plane.
| area_min | The minimum threshold. |
Definition at line 143 of file supporting_plane_extraction.h.
| void SupportingPlaneExtraction::setDistanceMax | ( | double | distance_max | ) | [inline] |
Set the maximum threshold for the distance from the supporting plane to the view point.
| distance_man | The maximum threshold. |
Definition at line 131 of file supporting_plane_extraction.h.
| void SupportingPlaneExtraction::setDistanceMin | ( | double | distance_min | ) | [inline] |
Set the minimum threshold for the distance from the supporting plane to the view point.
| distance_min | The minimum threshold. |
Definition at line 119 of file supporting_plane_extraction.h.
double SupportingPlaneExtraction::area_max_ [protected] |
The maximum area of the supporting plane.
Definition at line 176 of file supporting_plane_extraction.h.
double SupportingPlaneExtraction::area_min_ [protected] |
The minimum area of the supporting plane.
Definition at line 175 of file supporting_plane_extraction.h.
double SupportingPlaneExtraction::distance_max_ [protected] |
The minimum distance between supporting plane an view point.
Definition at line 174 of file supporting_plane_extraction.h.
double SupportingPlaneExtraction::distance_min_ [protected] |
The minimum distance between supporting plane an view point.
Definition at line 173 of file supporting_plane_extraction.h.