Exemple #1
0
 public static extern double imgproc_pointPolygonTest_InputArray(IntPtr contour, Point2f pt, int measureDist);
Exemple #2
0
 public static extern double imgproc_pointPolygonTest_Point2f(Point2f[] contour, int contourLength,
                                                              Point2f pt, int measureDist);
Exemple #3
0
 public static extern void imgproc_minEnclosingCircle_InputArray(IntPtr points, out Point2f center, out float radius);
Exemple #4
0
 public static extern void imgproc_minEnclosingCircle_Point2f(Point2f[] points, int pointsLength,
                                                              out Point2f center, out float radius);
 public static extern int imgproc_Subdiv2D_edgeDst(IntPtr obj, int edge, out Point2f dstpt);
Exemple #6
0
 public static extern void imgproc_getRectSubPix(IntPtr image, Size patchSize, Point2f center, IntPtr patch, int patchType);
 public static extern int imgproc_Subdiv2D_findNearest(IntPtr obj, Point2f pt, out Point2f nearestPt);
 public static extern int imgproc_Subdiv2D_edgeOrg(IntPtr obj, int edge, out Point2f orgpt);
 public static extern int imgproc_Subdiv2D_insert(IntPtr obj, Point2f pt);
 public static extern int imgproc_Subdiv2D_locate(IntPtr obj, Point2f pt, out int edge, out int vertex);
 public static extern void core_Mat_push_back_Point2f(IntPtr self, Point2f val);
Exemple #12
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pt"></param>
        /// <returns></returns>
        public int FindNearest(Point2f pt)
        {
            Point2f nearestPt;

            return(FindNearest(pt, out nearestPt));
        }
Exemple #13
0
        /// <summary>
        /// 指定した点がこの矩形に含まれているかどうかを判断する
        /// </summary>
        /// <param name="pt">点</param>
        /// <returns></returns>
#else
        /// <summary>
        /// Determines if the specified point is contained within the rectangular region defined by this Rectangle.
        /// </summary>
        /// <param name="pt">point</param>
        /// <returns></returns>
#endif
        public bool Contains(Point2f pt)
        {
            return(Contains(pt.X, pt.Y));
        }
Exemple #14
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="box"></param>
 public RotatedRect(CvBox2D box)
 {
     Center = box.Center;
     Size   = box.Size;
     Angle  = box.Angle;
 }
Exemple #15
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="center"></param>
 /// <param name="size"></param>
 /// <param name="angle"></param>
 public RotatedRect(Point2f center, Size2f size, float angle)
 {
     Center = center;
     Size   = size;
     Angle  = angle;
 }