Exemple #1
0
        public static Emgu.CV.Util.VectorOfVectorOfPoint FindContours(this Emgu.CV.IInputOutputArray image,
                                                                      Emgu.CV.CvEnum.ChainApproxMethod method)
        {
            var contours = new Emgu.CV.Util.VectorOfVectorOfPoint();

            Emgu.CV.CvInvoke.FindContours(image: image,
                                          contours: contours,
                                          hierarchy: null,
                                          mode: Emgu.CV.CvEnum.RetrType.External,
                                          method: method);
            return(contours);
        }
    public static VectorOfVectorOfPointF FindContour(this UMat img, Mat hierarchy = null, Emgu.CV.CvEnum.RetrType type = Emgu.CV.CvEnum.RetrType.List, Emgu.CV.CvEnum.ChainApproxMethod method = Emgu.CV.CvEnum.ChainApproxMethod.ChainApproxSimple)
    {
        VectorOfVectorOfPointF contours = new VectorOfVectorOfPointF();

        CvInvoke.FindContours(img, contours, hierarchy, type, method);
        return(contours);
    }