#pragma once #ifndef _IMGDIVIDE_DEFINED_ #define _IMGDIVIDE_DEFINED_ #include #include #define SIMPLE_SPACE 3 #define BLANK_COLOR_VALUE 10 #include "LogUtil.h" class ImgDivider { public: //ÂúÊý¾ÝÐÐ static bool isRowFull(cv::Mat img,int row); static bool isRowFull(cv::Mat img, int row,int startCol,int endCol, int simple); static bool isRowFull(cv::Mat img, int row, int startCol, int endCol, int simple, int splitColorFrom, int splitColorTo); //¿ÕÊý¾ÝÐÐ static bool isRowEmpty(cv::Mat img, int row, int startCol, int endCol); static bool isRowEmpty(cv::Mat img, int row, int startCol, int endCol, int simple); static bool isRowEmpty(cv::Mat img, int row, int startCol, int endCol, int simple,int blankColorValue); static bool isRowEmpty(cv::Mat img, int row); //ÓÐÊý¾ÝÐÐ static bool rowHasData(cv::Mat img, int row); //ÂúÊý¾ÝÁÐ static bool isColFull(cv::Mat img, int col, int startRow = 0); static bool isColFull(cv::Mat img, int col, int startRow, int endRow, int simple); //¿ÕÊý¾ÝÁÐ static bool isColEmpty(cv::Mat img, int row); static bool isColEmpty(cv::Mat img, int col, int fromRow, int endRow); static bool isColEmpty(cv::Mat img, int col, int simple); static bool isColEmpty(cv::Mat img, int col, int fromRow, int endRow,int blankColorValue); //ÓÐÊý¾ÝÁÐ static bool colHasData(cv::Mat img, int row); }; #endif