类 ImgprocUtils
- java.lang.Object
-
- com.litongjava.opencv.utils.ImgprocUtils
-
public class ImgprocUtils extends Object
-
-
构造器概要
构造器 构造器 说明 ImgprocUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static org.opencv.core.MatbackToWhite(org.opencv.core.Mat src, DebugInfo debugInfo)将背景色设置为白色static voidboundingRect()static voidboundingRectAndSubmat(org.opencv.core.Mat thresholded, DebugInfo debugInfo)static org.opencv.core.MatdrawContours(org.opencv.core.Mat src, List<org.opencv.core.MatOfPoint> contours, DebugInfo debugInfo)画出轮廓并保存static org.opencv.core.MatextraMaxArea(org.opencv.core.Mat src, DebugInfo debugInfo)提取最大面积的轮廓static org.opencv.core.MatextraMaxArea(org.opencv.core.Mat src, MaxAreaBo maxArea, DebugInfo debugInfo)提取最大面积的轮廓static List<org.opencv.core.MatOfPoint>findContours(org.opencv.core.Mat src, DebugInfo debugInfo)查找轮廓并返回static org.opencv.core.MatfindContoursAndDraw(org.opencv.core.Mat src, DebugInfo debugInfo)查找图片中的轮廓并绘制出来static List<org.opencv.core.MatOfPoint>findContoursNotBlur(org.opencv.core.Mat src, DebugInfo debugInfo)查找轮廓static MaxAreaBogetMaxArea(org.opencv.core.Mat src, DebugInfo debugInfo)查找面积最大的轮廓static MaxAreaBogetMaxAreaNoFilter(org.opencv.core.Mat src, DebugInfo debugInfo)裁剪出最大面积的图像,不用进行过滤static org.opencv.core.Matusm(org.opencv.core.Mat src)使用usm对图片进行锐化增强
-
-
-
方法详细资料
-
boundingRect
public static void boundingRect()
-
findContours
public static List<org.opencv.core.MatOfPoint> findContours(org.opencv.core.Mat src, DebugInfo debugInfo) throws IOException
查找轮廓并返回- 参数:
src-debugInfo-- 返回:
- 抛出:
IOException
-
findContoursNotBlur
public static List<org.opencv.core.MatOfPoint> findContoursNotBlur(org.opencv.core.Mat src, DebugInfo debugInfo) throws IOException
查找轮廓- 参数:
src-debugInfo-- 抛出:
IOException
-
findContoursAndDraw
public static org.opencv.core.Mat findContoursAndDraw(org.opencv.core.Mat src, DebugInfo debugInfo) throws IOException查找图片中的轮廓并绘制出来- 返回:
- 抛出:
IOException
-
drawContours
public static org.opencv.core.Mat drawContours(org.opencv.core.Mat src, List<org.opencv.core.MatOfPoint> contours, DebugInfo debugInfo) throws IOException画出轮廓并保存- 参数:
src-contours-debugInfo-- 返回:
- 抛出:
IOException
-
extraMaxArea
public static org.opencv.core.Mat extraMaxArea(org.opencv.core.Mat src, DebugInfo debugInfo) throws IOException提取最大面积的轮廓- 参数:
src-debugInfo-- 返回:
- 抛出:
IOException
-
extraMaxArea
public static org.opencv.core.Mat extraMaxArea(org.opencv.core.Mat src, MaxAreaBo maxArea, DebugInfo debugInfo) throws IOException提取最大面积的轮廓- 参数:
src-maxArea-debugInfo-- 返回:
- 抛出:
IOException
-
getMaxArea
public static MaxAreaBo getMaxArea(org.opencv.core.Mat src, DebugInfo debugInfo) throws IOException
查找面积最大的轮廓- 参数:
src-debugInfo-- 返回:
- 抛出:
IOException
-
boundingRectAndSubmat
public static void boundingRectAndSubmat(org.opencv.core.Mat thresholded, DebugInfo debugInfo) throws IOException- 抛出:
IOException
-
backToWhite
public static org.opencv.core.Mat backToWhite(org.opencv.core.Mat src, DebugInfo debugInfo) throws IOException将背景色设置为白色- 抛出:
IOException
-
usm
public static org.opencv.core.Mat usm(org.opencv.core.Mat src)
使用usm对图片进行锐化增强- 参数:
src-- 返回:
-
getMaxAreaNoFilter
public static MaxAreaBo getMaxAreaNoFilter(org.opencv.core.Mat src, DebugInfo debugInfo) throws IOException
裁剪出最大面积的图像,不用进行过滤- 参数:
src-debugInfo-- 返回:
- 抛出:
IOException
-
-