void LibMuraAlg::bilateralThresh(cv::Mat & src, cv::Mat & dst, int lowThresh, int heighThresh)
{
for (int row = 0; row < src.rows; row++)
{
for (int col = 0; col < src.cols; col++)
{
if (src.at<uchar>(row, col) > lowThresh && src.at<uchar>(row, col) < heighThresh)
dst.at<uchar>(row, col) = 255;
}
}
}
双阈值二值化
最新推荐文章于 2024-08-23 15:15:47 发布