30 Rect(
double _x0,
double _y0,
double _x1,
double _y1)
31 :
x0(_x0),
y0(_y0),
x1(_x1),
y1(_y1) {}
A 3D cloud interface with associated features (color, normals, octree, etc.)
Finds a the biggets enclosed rectangle in a point cloud (2D)
Rect m_boundingRect
Global rectangle.
unsigned char m_X
X dimension.
ccInnerRect2DFinder()
Default constructor.
double m_maxArea
Inner rectangle max area.
ccGenericPointCloud * m_cloud
Associated cloud.
Rect m_maxRect
Inner rectangle.
bool init(ccGenericPointCloud *cloud, unsigned char zDim)
Initializes internal structures.
ccBox * process(ccGenericPointCloud *cloud, unsigned char zDim=2)
Finds the biggest enclosed rectangle.
void findBiggestRect(const Rect &rect, unsigned startIndex)
Internal processs.
unsigned char m_Y
Y dimension.
Rect(double _x0, double _y0, double _x1, double _y1)