Esempio n. 1
0
 /// <summary>
 /// Draws contour outlines or filled interiors on the image
 /// </summary>
 /// <param name="img"></param>
 /// <param name="contour"></param>
 /// <param name="external_color"></param>
 /// <param name="hole_color"></param>
 /// <param name="max_level"></param>
 /// <param name="thickness"></param>
 public static void cvDrawContours(__CvArrPtr img, __CvSeqPtr contour,
                                   __CvScalar external_color, __CvScalar hole_color,
                                   int max_level, int thickness)
 {
     cvDrawContours(img, contour, external_color, hole_color,
                    max_level, thickness, 8, new __CvPoint(0, 0));
 }
Esempio n. 2
0
 /// <summary>
 /// Retrieves outer and optionally inner boundaries of white (non-zero) connected
 /// components in the black (zero) background
 /// </summary>
 /// <param name="image"></param>
 /// <param name="storage"></param>
 /// <param name="first_contour"></param>
 /// <returns></returns>
 public static int cvFindContours(__CvArrPtr image, __CvMemStoragePtr storage,
                                  out __CvSeqPtr first_contour)
 {
     unsafe
     {
         return(cvFindContours(
                    image, storage, out first_contour, sizeof(__CvContour),
                    CV_RETR.CV_RETR_LIST, CV_CHAIN.CV_CHAIN_APPROX_SIMPLE, new __CvPoint(0, 0)));
     }
 }
Esempio n. 3
0
 public static extern void cvPyrSegmentation(__CvImagePtr src, __CvImagePtr dst, __CvMemStoragePtr storage, __CvSeqPtr comp, int level, double threshold1, double threshold2);
Esempio n. 4
0
 /// <summary>
 /// Retrieves outer and optionally inner boundaries of white (non-zero) connected
 /// components in the black (zero) background
 /// </summary>
 /// <param name="image"></param>
 /// <param name="storage"></param>
 /// <param name="first_contour"></param>
 /// <param name="header_size"></param>
 /// <param name="mode"></param>
 /// <param name="method"></param>
 /// <returns></returns>
 public static int cvFindContours(__CvArrPtr image, __CvMemStoragePtr storage,
                                  out __CvSeqPtr first_contour, int header_size)
 {
     return(cvFindContours(image, storage, out first_contour, header_size, CV_RETR.CV_RETR_LIST, CV_CHAIN.CV_CHAIN_APPROX_SIMPLE, new __CvPoint(0, 0)));
 }
Esempio n. 5
0
 /// <summary>
 /// Retrieves outer and optionally inner boundaries of white (non-zero) connected
 /// components in the black (zero) background
 /// </summary>
 /// <param name="image"></param>
 /// <param name="storage"></param>
 /// <param name="first_contour"></param>
 /// <param name="header_size"></param>
 /// <param name="mode"></param>
 /// <param name="method"></param>
 /// <returns></returns>
 public static int cvFindContours(__CvArrPtr image, __CvMemStoragePtr storage,
                                  out __CvSeqPtr first_contour, int header_size, CV_RETR mode, CV_CHAIN method)
 {
     return(cvFindContours(image, storage, out first_contour, header_size, mode, method, new __CvPoint(0, 0)));
 }
Esempio n. 6
0
 public static extern int cvFindContours(__CvArrPtr image, __CvMemStoragePtr storage,
                                         out __CvSeqPtr first_contour, int header_size, CV_RETR mode,
                                         CV_CHAIN method, __CvPoint offset);
Esempio n. 7
0
 public static extern void cvDrawContours(__CvArrPtr img, __CvSeqPtr contour,
                                          __CvScalar external_color, __CvScalar hole_color,
                                          int max_level, int thickness, int line_type, __CvPoint offset);