22 #ifndef _oniPlaneSegmentation_H
23 #define _oniPlaneSegmentation_H
47 void Allocate(
unsigned int width,
unsigned int height);
109 bool GetObjectVector(std::vector< std::vector<oniRGBCRXYZ> > & objects,
142 unsigned int ConsolidatePlanes();
144 void CalculateAverageGradientForPlane(
unsigned int planeid,
int & gradx,
int & grady);
146 void LabelObjects(
unsigned int planeid);
152 void ComputePlaneStats(
int frameid);
154 void ConsolidatePlaneLabels();
169 inline unsigned int sqrt_uint32(
unsigned int value);
174 unsigned int FrameCounter;
175 unsigned int PlaneIDCounter;
176 unsigned int PlaneID;
177 unsigned int PlaneDistanceThreshold;
178 unsigned int ColorMatchWeight;
179 unsigned char GradientHistogramThreshold;
180 unsigned int MinObjectArea;
181 unsigned int GradientRadius;
182 unsigned int PeakRadius;
183 unsigned int MaxPlaneMatchError;
184 float MergeThreshold;
185 unsigned int MaxPlaneCount;
186 unsigned int MinPlaneArea;
212 unsigned int PeakCount;
216 unsigned int PlaneCacheSize;
221 unsigned int NumberOfVisiblePlanes;
222 int PlaneHistoryPosition;
227 #endif // _oniPlaneSegmentation_H
svlSampleImageMono32 * Hist
Definition: oniPlaneSegmentation.h:62
unsigned int GetMinPlaneArea() const
unsigned char g
Definition: oniPlaneSegmentation.h:31
float z
Definition: oniPlaneSegmentation.h:37
bool Process(svlSampleImageRGB *rgb, svlSampleImage3DMap *pointcloud, svlSampleImageRGB *visualized, svlSampleImageMono16 *planedistance, svlSampleBlobs *planeobjects)
bool GetUVHistogram(svlSampleImageRGB *uvhistogramimage)
unsigned int GetPeakRadius() const
unsigned int GetPlaneID() const
Definition: svlSampleBlobs.h:31
unsigned char GetGradientHistogramThreshold() const
double GetColorMatchWeight() const
vctFloat4 Plane
Definition: oniPlaneSegmentation.h:63
void SetMinPlaneArea(unsigned int minarea)
bool GetObjectVector(std::vector< std::vector< oniRGBCRXYZ > > &objects, svlSampleImageRGB *rgb, svlSampleImage3DMap *pointcloud, svlSampleBlobs *planeobjects)
vctInt2 CoW
Definition: oniPlaneSegmentation.h:57
int First
Definition: oniPlaneSegmentation.h:56
void SetPlaneID(unsigned int planeid)
unsigned char b
Definition: oniPlaneSegmentation.h:32
Definition: oniPlaneSegmentation.h:28
int ID
Definition: oniPlaneSegmentation.h:52
void SetGradientHistogramThreshold(unsigned char threshold)
svlRect Rect
Definition: oniPlaneSegmentation.h:59
svlRGB Color
Definition: oniPlaneSegmentation.h:67
void GetPlaneIDs(vctDynamicVector< unsigned int > &id_vector) const
void SetColorMatchWeight(double weight)
void SetGradientRadius(unsigned int radius)
Definition: svlSampleImageCustom.h:37
bool Used
Definition: oniPlaneSegmentation.h:54
Definition: svlImageProcessing.h:38
int Label
Definition: oniPlaneSegmentation.h:53
int GetPlaneCopy(oniPlane &plane, unsigned int plane_id) const
void SetPlaneDistanceThreshold(double threshold)
void CopyOf(const oniPlane &other)
unsigned short col
Definition: oniPlaneSegmentation.h:33
svlSampleImageMono8 * Mask
Definition: oniPlaneSegmentation.h:60
float x
Definition: oniPlaneSegmentation.h:35
unsigned int Peak
Definition: oniPlaneSegmentation.h:66
void GetPlaneIDMap(svlSampleImageMono32 &id_map) const
unsigned int GetGradientRadius() const
void SetMergeThreshold(float threshold)
float GetMergeThreshold() const
void SetPeakRadius(unsigned int radius)
Definition: svlTypes.h:215
int GradX
Definition: oniPlaneSegmentation.h:64
Definition: oniPlaneSegmentation.h:41
unsigned char r
Definition: oniPlaneSegmentation.h:30
unsigned int Area
Definition: oniPlaneSegmentation.h:58
unsigned short row
Definition: oniPlaneSegmentation.h:34
unsigned int GetMinObjectArea() const
double GetPlaneDistanceThreshold() const
Definition: svlTypes.h:118
Definition: oniPlaneSegmentation.h:71
svlSampleImageMono16 * Dist
Definition: oniPlaneSegmentation.h:61
void Allocate(unsigned int width, unsigned int height)
const oniPlane & GetPlane(unsigned int plane_id) const
float y
Definition: oniPlaneSegmentation.h:36
void SetMinObjectArea(unsigned int minarea)
int Frame
Definition: oniPlaneSegmentation.h:55
int GradY
Definition: oniPlaneSegmentation.h:65