13#include <opencv2/core.hpp>
17#include <opencv2/imgproc/types_c.h>
47 cv::Size
Size()
const;
Image SeparateColor(SeparatedColorType type) const
提取指定颜色像素图像
Image & Scale(double factor, int interpolation=cv::INTER_LINEAR)
缩放图像
Lines GetLines(LineType line_type, const ImagePreprocessor &imp, int threshold, double min_line_length, double max_line_gap=10) const
通过霍夫变换获取线
Image InvertColorRegion(double min_area=7000) const
反转图像中的彩色块
Image & ModifyLinesAreaValue(LineType line_type, const Lines &lines, int pixel_margin=2, uchar pixel_value=0)
修改图像中线所在区域的灰度值
Image GetGrayHistogram() const
计算图像的灰度直方图
Image & Resize(size_t height, size_t width, int interpolation=cv::INTER_LINEAR)
重新设置图像大小
Rects GetTextAreaOutline(size_t dilate_size, double max_aspect_ratio=30) const
获取文本区域轮廓
Image & RmRedBlueStamp(uchar bg_gray_value=255)
删除图像中的红色和蓝色印章
Image & RmRedStamp(uchar bg_gray_value=255)
删除图像中的红色印章
static double AdjustImageByGrayImage(cv::Mat &image, const cv::Mat &gray_image, uchar bg_gray_value, const std::vector< uchar > &thresholds)
通过灰度图像调整输入图像
cv::Size Size() const
获取图像的大小
Image & HorizontalLengthSmooth(int threshold)
水平游程平滑
@ RT_AUTO
自动调整大小,支持放大和缩小图片
unsigned char uchar
无符号字符类型
SeparatedColorType
支持分离的颜色类型枚举