Emgu.CV.CvInvoke.cvFindNearestPoint2D C# (CSharp) Method

cvFindNearestPoint2D() private method

private cvFindNearestPoint2D ( IntPtr subdiv, PointF pt ) : IntPtr
subdiv IntPtr
pt PointF
return IntPtr
        public static extern IntPtr cvFindNearestPoint2D(IntPtr subdiv, PointF pt);

Usage Example

コード例 #1
0
 /// <summary>
 /// Finds subdivision vertex that is the closest to the input point. It is not necessarily one of vertices of the facet containing the input point, though the facet (located using cvSubdiv2DLocate) is used as a starting point.
 /// </summary>
 /// <param name="point">Input point</param>
 /// <returns>The nearest subdivision vertex</returns>
 public MCvSubdiv2DPoint FindNearestPoint2D(ref PointF point)
 {
     return((MCvSubdiv2DPoint)Marshal.PtrToStructure(
                CvInvoke.cvFindNearestPoint2D(Ptr, point),
                typeof(MCvSubdiv2DPoint)));
 }
CvInvoke