
Opencv/计算机视觉
文章平均质量分 60
星梦启航
这个作者很懒,什么都没留下…
展开
-
获取二值图像上部边缘
#include #include #include using namespace cv;using namespace std;int main(){ Mat img = imread("1.png"); cvtColor(img,img,CV_RGB2GRAY); Mat outImg = img.clone(); int rowNumber = outImg.原创 2016-12-19 09:36:04 · 598 阅读 · 0 评论 -
图像基本二值化实现
#include #include using namespace cv;using namespace std;bool main(){ Mat src = imread("1.jpg"); Mat dst; cvtColor(src,dst,CV_RGB2GRAY); int dstLength = dst.cols; int dstHeight = dst.rows原创 2016-12-19 09:50:22 · 495 阅读 · 0 评论