Example #1
0
        internal CVConnectedComp(ref __CvConnectedComp input)
        {
            area = input.area;

            avgColor = CVUtils.ScalarToColor(input.value);

            rect = new System.Drawing.Rectangle(input.rect.x, input.rect.y, input.rect.width, input.rect.height);
            contour = input.contour;
        }
Example #2
0
        internal CVConnectedComp(ref __CvConnectedComp input)
        {
            area = input.area;

            avgColor = CVUtils.ScalarToColor(input.value);

            rect    = new System.Drawing.Rectangle(input.rect.x, input.rect.y, input.rect.width, input.rect.height);
            contour = input.contour;
        }
Example #3
0
 internal static extern void cvPyrSegmentation(__CvImagePtr src, __CvImagePtr dst, __CvMemStoragePtr storage, __CvSeqPtr comp, int level, double threshold1, double threshold2);
Example #4
0
 internal static extern void cvPyrSegmentation(__CvImagePtr src, __CvImagePtr dst, __CvMemStoragePtr storage, __CvSeqPtr comp, int level, double threshold1, double threshold2);
Example #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>
 /// <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));
         }
 }
Example #6
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));
 }
Example #7
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));
 }
Example #8
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);