C# Class Emgu.CV.PointCollection

A collection of points
ファイルを表示 Open project: fajoy/RTSPExample

Public Methods

Method Description
BoundingRectangle ( PointF points ) : Rectangle

Find the bounding rectangle for the specific array of points

ConvexHull ( PointF points, MemStorage storage, CvEnum orientation ) : Seq

Finds convex hull of 2D point set using Sklansky's algorithm

EllipseLeastSquareFitting ( PointF points ) : Ellipse

Fit an ellipse to the points collection

GeneratePointCloud ( Ellipse e, int numberOfPoints ) : System.Drawing.PointF[]

Generate a random point cloud around the ellipse.

Line2DFitting ( PointF points, CvEnum type, PointF &normalizedDirection, PointF &aPointOnLine ) : void

Fit a line to the points collection

MinAreaRect ( PointF points ) : MCvBox2D

Find the bounding rectangle for the specific array of points

MinEnclosingCircle ( PointF points ) : CircleF

Find the minimum enclosing circle for the specific array of points

PolyLine ( PointF points, bool closed ) : Emgu.CV.Structure.LineSegment2DF[]

convert a series of points to LineSegment2D

PolyLine ( Point points, bool closed ) : Emgu.CV.Structure.LineSegment2D[]

convert a series of System.Drawing.Point to LineSegment2D

ReprojectImageTo3D ( Byte>.Image disparity, Matrix Q ) : MCvPoint3D32f[]

Reproject pixels on a 1-channel disparity map to array of 3D points.

ReprojectImageTo3D ( Int16>.Image disparity, Matrix Q ) : MCvPoint3D32f[]

Reproject pixels on a 1-channel disparity map to array of 3D points.

Method Details

BoundingRectangle() public static method

Find the bounding rectangle for the specific array of points
public static BoundingRectangle ( PointF points ) : Rectangle
points System.Drawing.PointF The collection of points
return System.Drawing.Rectangle

ConvexHull() public static method

Finds convex hull of 2D point set using Sklansky's algorithm
public static ConvexHull ( PointF points, MemStorage storage, CvEnum orientation ) : Seq
points System.Drawing.PointF The points to find convex hull from
storage MemStorage the storage used by the resulting sequence
orientation CvEnum The orientation of the convex hull
return Seq

EllipseLeastSquareFitting() public static method

Fit an ellipse to the points collection
public static EllipseLeastSquareFitting ( PointF points ) : Ellipse
points System.Drawing.PointF The points to be fitted
return Emgu.CV.Structure.Ellipse

GeneratePointCloud() public static method

Generate a random point cloud around the ellipse.
public static GeneratePointCloud ( Ellipse e, int numberOfPoints ) : System.Drawing.PointF[]
e Emgu.CV.Structure.Ellipse The region where the point cloud will be generated. The axes of e corresponds to std of the random point cloud.
numberOfPoints int The number of points to be generated
return System.Drawing.PointF[]

Line2DFitting() public static method

Fit a line to the points collection
public static Line2DFitting ( PointF points, CvEnum type, PointF &normalizedDirection, PointF &aPointOnLine ) : void
points System.Drawing.PointF The points to be fitted
type CvEnum The type of the fitting
normalizedDirection System.Drawing.PointF The normalized direction of the fitted line
aPointOnLine System.Drawing.PointF A point on the fitted line
return void

MinAreaRect() public static method

Find the bounding rectangle for the specific array of points
public static MinAreaRect ( PointF points ) : MCvBox2D
points System.Drawing.PointF The collection of points
return MCvBox2D

MinEnclosingCircle() public static method

Find the minimum enclosing circle for the specific array of points
public static MinEnclosingCircle ( PointF points ) : CircleF
points System.Drawing.PointF The collection of points
return CircleF

PolyLine() public static method

convert a series of points to LineSegment2D
public static PolyLine ( PointF points, bool closed ) : Emgu.CV.Structure.LineSegment2DF[]
points System.Drawing.PointF the array of points
closed bool if true, the last line segment is defined by the last point of the array and the first point of the array
return Emgu.CV.Structure.LineSegment2DF[]

PolyLine() public static method

convert a series of System.Drawing.Point to LineSegment2D
public static PolyLine ( Point points, bool closed ) : Emgu.CV.Structure.LineSegment2D[]
points Point the array of points
closed bool if true, the last line segment is defined by the last point of the array and the first point of the array
return Emgu.CV.Structure.LineSegment2D[]

ReprojectImageTo3D() public static method

Reproject pixels on a 1-channel disparity map to array of 3D points.
public static ReprojectImageTo3D ( Byte>.Image disparity, Matrix Q ) : MCvPoint3D32f[]
disparity Byte>.Image Disparity map
Q Matrix The reprojection 4x4 matrix, can be arbitrary, e.g. the one, computed by cvStereoRectify
return MCvPoint3D32f[]

ReprojectImageTo3D() public static method

Reproject pixels on a 1-channel disparity map to array of 3D points.
public static ReprojectImageTo3D ( Int16>.Image disparity, Matrix Q ) : MCvPoint3D32f[]
disparity Int16>.Image Disparity map
Q Matrix The reprojection 4x4 matrix, can be arbitrary, e.g. the one, computed by cvStereoRectify
return MCvPoint3D32f[]