Ejemplo n.º 1
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)));
     }
 }
Ejemplo n.º 2
0
 public static extern void cvPyrSegmentation(__CvImagePtr src, __CvImagePtr dst, __CvMemStoragePtr storage, __CvSeqPtr comp, int level, double threshold1, double threshold2);
Ejemplo n.º 3
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)));
 }
Ejemplo 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, CV_RETR mode, CV_CHAIN method)
 {
     return(cvFindContours(image, storage, out first_contour, header_size, mode, method, new __CvPoint(0, 0)));
 }
Ejemplo n.º 5
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);
Ejemplo n.º 6
0
 public static extern void cvReleaseMemStorage(ref __CvMemStoragePtr storage);