类 ShapeUtils


  • public class ShapeUtils
    extends Object
    形状变换
    作者:
    Ping
    • 构造器详细资料

      • ShapeUtils

        public ShapeUtils()
    • 方法详细资料

      • getShapeContours

        public static List<org.opencv.core.Mat> getShapeContours​(org.opencv.core.Mat morphology,
                                                                 DebugInfo debugInfo)
                                                          throws IOException
        返回图像轮廓
        参数:
        morphology - 经过形态变换的二值化矩阵
        debugInfo -
        抛出:
        IOException
      • getShape

        public static org.opencv.core.MatOfPoint2f getShape​(org.opencv.core.MatOfPoint contour)
        返回图像形状的多边形曲线
        参数:
        contour -
        返回:
      • findExternalContours

        public static List<org.opencv.core.MatOfPoint> findExternalContours​(org.opencv.core.Mat src,
                                                                            DebugInfo debugInfo)
        查找最外部的轮廓
        参数:
        debugInfo -
      • getWhiteRatio

        public static double getWhiteRatio​(org.opencv.core.Mat src)