首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 数字图像处理

数字图像处理

  • 资源大小:4.46 MB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: c++

资 源 简 介

#include #include #include #include using namespace std;using namespace cv;int main(){//图像读取Mat image = imread("D:/ps/meiyuan.png");//判断图像读取是否有问题if (!image.data){cout << "image read is error!" << endl;return 0;}//图像基本信息输出cout << "image Info:Height:" << image.size().height << " Width:" << image.size().width << endl;//原始图像显示namedWindow("Original Image");imshow("Original Image", image);imwrite("original.jpg", image);//处理图像Mat image_tmp = image.clone();int nl = image.rows;int nc = image.cols * image.channels(); //实际列if (image.isContinuous()){nc = nc * nl;nl = 1;}

文 件 列 表

fenceng
x64
fenceng
Debug
.vs
fenceng.sdf
fenceng.sln
.vs
VIP VIP
0.194609s