Go to the documentation of this file.
16 #ifndef __PBMAP_PLANE_H
17 #define __PBMAP_PLANE_H
19 #include <mrpt/config.h>
24 #include <pcl/point_types.h>
25 #include <pcl/common/pca.h>
29 #define USE_COMPLETNESS_HEURISTICS 1
30 #define USE_INFERRED_STRUCTURE 1
73 pcl::PointCloud<pcl::PointXYZRGBA>::Ptr& pointCloud,
77 pcl::PointCloud<pcl::PointXYZRGBA>::Ptr& pointCloud,
106 Plane& plane,
const float& cosAngleThreshold,
107 const float& distThreshold,
const float& proxThreshold);
110 Eigen::Matrix4f& Rt,
Plane& plane_,
const float& cosAngleThreshold,
111 const float& distThreshold,
const float& proxThreshold);
183 pcl::PointCloud<pcl::PointXYZRGBA>::Ptr
185 pcl::PointCloud<pcl::PointXYZRGBA>::Ptr
200 std::vector<float>
r;
201 std::vector<float>
g;
202 std::vector<float>
b;
209 std::vector<float>
c1;
210 std::vector<float>
c2;
211 std::vector<float>
c3;
float compute2DPolygonalArea()
Compute the area of a 2D planar polygon patch - using a given normal.
bool hasSimilarDominantColor(Plane &plane, const float colorThreshold)
void mergePlane2(Plane &plane)
std::vector< float > hist_H
unsigned nFramesAreaIsStable
std::vector< std::vector< float > > prog_hist_H
static std::vector< size_t > DEFAULT_VECTOR
std::vector< float > intensity
Eigen::Vector3f v3colorNrgb
! Radiometric description
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void forcePtsLayOnPlane()
std::vector< int32_t > inliers
! Convex Hull
void computeMassCenterAndArea()
Compute the patch's convex-hull area and mass center.
void calcConvexHullandParams(pcl::PointCloud< pcl::PointXYZRGBA >::Ptr &pointCloud, std::vector< size_t > &indices=DEFAULT_VECTOR)
std::vector< double > prog_area
Eigen::Vector3f v3center
! Geometric description
pcl::PointCloud< pcl::PointXYZRGBA >::Ptr outerPolygonPtr
bool isPlaneNearby(Plane &plane, const float distThreshold)
A class used to store a planar feature (Plane for short).
The virtual base class which provides a unified interface for all persistent objects in MRPT.
std::vector< Eigen::Vector3f > prog_Nrgb
pcl::PointCloud< pcl::PointXYZRGBA >::Ptr polygonContourPtr
std::vector< Eigen::Vector3f > prog_C1C2C3
pcl::PointCloud< pcl::PointXYZRGBA >::Ptr planePointCloudPtr
std::vector< float > prog_intensity
void calcConvexHull(pcl::PointCloud< pcl::PointXYZRGBA >::Ptr &pointCloud, std::vector< size_t > &indices=DEFAULT_VECTOR)
! Calculate the plane's convex hull with the monotone chain algorithm.
std::string label_context
std::vector< double > prog_elongation
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void mergePlane(Plane &plane)
std::map< unsigned, unsigned > neighborPlanes
unsigned id
! Parameters to allow the plane-based representation of the map by a graph
Eigen::Vector3f v3PpalDir
Eigen::Matrix4f information
bool isSamePlane(Plane &plane, const float &cosAngleThreshold, const float &distThreshold, const float &proxThreshold)
GLsizei const GLchar ** string
void transform(Eigen::Matrix4f &Rt)
Eigen::Vector3f v3colorC1C2C3
GLuint GLuint GLsizei GLenum const GLvoid * indices
Eigen::Vector3f v3colorNrgbDev
std::set< unsigned > nearbyPlanes
void calcElongationAndPpalDir()
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |