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