Image Component Library (ICL)
|
class for extraction of surface features. More...
#include <SurfaceFeatureExtractor.h>
Classes | |
struct | SurfaceFeature |
Public Types | |
enum | Mode { NORMAL_HISTOGRAM = 1, CURVATURE_FACTOR = 2, MEAN_NORMAL = 4, MEAN_POSITION = 8, BOUNDING_BOX_3D = 16, BOUNDING_BOX_2D = 32, ALL = 63 } |
enum | CurvatureFactor { UNDEFINED =0, PLANAR =1, CURVED_1D =2, CURVED_2D =3 } |
Static Public Member Functions | |
static SurfaceFeature | apply (std::vector< Vec > &points, std::vector< Vec > &normals, int mode=ALL) |
Applies the surface feature calculation for one single surface (please note: no BoundingBox2D) More... | |
static std::vector< SurfaceFeature > | apply (core::Img32s labelImage, core::DataSegment< float, 4 > &xyzh, core::DataSegment< float, 4 > &normals, int mode=ALL) |
Applies the surface feature calculation for all segments in the label image. More... | |
static float | matchNormalHistograms (core::Img32f &a, core::Img32f &b) |
Calculates the matching score between 0 and 1 for two normal histograms. More... | |
Static Private Member Functions | |
static SurfaceFeature | getInitializedStruct () |
static void | update (Vec &normal, Vec &point, SurfaceFeature &feature, int mode, int x=0, int y=0) |
static void | finish (SurfaceFeature &feature, int mode) |
class for extraction of surface features.
The SurfaceFeatureExtractor class computes normalHistograms, meanNormals, meanPosition, and curvatureFactor(planar, 1D curved, 2D curved) for sets of points.
|
static |
Applies the surface feature calculation for one single surface (please note: no BoundingBox2D)
points | the points xyz |
normals | the corresponding point normals |
mode | the mode from Mode enum (e.g. A | B) |
|
static |
Applies the surface feature calculation for all segments in the label image.
labelImage | the label image of the segmentation |
xyzh | the xyz pointcloud |
normals | the corresponding point normals |
mode | the mode from Mode enum (e.g. A | B) |
|
staticprivate |
|
staticprivate |
|
static |
Calculates the matching score between 0 and 1 for two normal histograms.
a | the first normal histogram |
b | the second normal histogram |
|
staticprivate |