Class PointCollection
A collection of points
public static class PointCollection
- Inheritance
-
PointCollection
- Inherited Members
Methods
BoundingRectangle(PointF[])
Find the bounding rectangle for the specific array of points
public static Rectangle BoundingRectangle(PointF[] points)
Parameters
points
PointF[]The collection of points
Returns
- Rectangle
The bounding rectangle for the array of points
EllipseLeastSquareFitting(PointF[])
Fit an ellipse to the points collection
public static Ellipse EllipseLeastSquareFitting(PointF[] points)
Parameters
points
PointF[]The points to be fitted
Returns
- Ellipse
An ellipse
GeneratePointCloud(Ellipse, int)
Generate a random point cloud around the ellipse.
public static PointF[] GeneratePointCloud(Ellipse e, int numberOfPoints)
Parameters
e
EllipseThe region where the point cloud will be generated. The axes of e corresponds to std of the random point cloud.
numberOfPoints
intThe number of points to be generated
Returns
- PointF[]
A random point cloud around the ellipse
PolyLine(PointF[], bool)
convert a series of points to LineSegment2D
public static LineSegment2DF[] PolyLine(PointF[] points, bool closed)
Parameters
points
PointF[]the array of points
closed
boolif true, the last line segment is defined by the last point of the array and the first point of the array
Returns
- LineSegment2DF[]
array of LineSegment2D
PolyLine(Point[], bool)
convert a series of System.Drawing.Point to LineSegment2D
public static LineSegment2D[] PolyLine(Point[] points, bool closed)
Parameters
points
Point[]the array of points
closed
boolif true, the last line segment is defined by the last point of the array and the first point of the array
Returns
- LineSegment2D[]
array of LineSegment2D
ReprojectImageTo3D(IInputArray, IInputArray)
Re-project pixels on a 1-channel disparity map to array of 3D points.
public static MCvPoint3D32f[] ReprojectImageTo3D(IInputArray disparity, IInputArray Q)
Parameters
disparity
IInputArrayDisparity map
Q
IInputArrayThe re-projection 4x4 matrix, can be arbitrary, e.g. the one, computed by cvStereoRectify
Returns
- MCvPoint3D32f[]
The reprojected 3D points