资源简介
此程序是基于opencv的图像处理源程序,对刚接触图像处理的同学,以及初级同学来说,是不可多得的好资源,认真学习后,一定会大有收获。

代码片段和文件信息
#include
#include
#include
using namespace cv;
int main(int argc char** argv) {
Mat src dst;
src = imread(“D:/vcprojects/images/test.png“);
if (!src.data) {
printf(“could not load image...\n“);
return -1;
}
namedWindow(“input image“ CV_WINDOW_AUTOSIZE);
imshow(“input image“ src);
/*
int cols = (src.cols-1) * src.channels();
int offsetx = src.channels();
int rows = src.rows;
dst = Mat::zeros(src.size() src.type());
for (int row = 1; row < (rows - 1); row++) {
const uchar* previous = src.ptr(row - 1);
const uchar* current = src.ptr(row);
const uchar* next = src.ptr(row + 1);
uchar* output = dst.ptr(row);
for (int col = offsetx; col < cols; col++) {
output[col] = saturate_cast(5 * current[col] - (current[col- offsetx] + current[col+ offsetx] + previous[col] + next[col]));
}
}
*/
double t = getTickCount();
Mat kernel = (Mat_(3 3) << 0 -1 0 -1 5 -1 0 -1 0);
filter2D(src dst src.depth() kernel);
double timeconsume = (getTickCount() - t) / getTickFrequency();
printf(“tim consume %.2f\n“ timeconsume);
namedWindow(“contrast image demo“ CV_WINDOW_AUTOSIZE);
imshow(“contrast image demo“ dst);
waitKey(0);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-11-01 18:46 课程配套源代码\
文件 1316 2016-10-20 09:33 课程配套源代码\main-002.cpp
文件 576 2016-09-15 15:53 课程配套源代码\main-003.cpp
文件 1325 2016-10-20 15:53 课程配套源代码\main-004.cpp
文件 1216 2016-10-09 11:53 课程配套源代码\main-005.cpp
文件 946 2016-10-20 17:04 课程配套源代码\main-006.cpp
文件 1447 2016-10-20 17:38 课程配套源代码\main-007.cpp
文件 2413 2016-10-21 11:38 课程配套源代码\main-008.cpp
文件 1011 2016-10-10 13:08 课程配套源代码\main-009.cpp
文件 661 2016-10-21 12:21 课程配套源代码\main-010.cpp
文件 718 2016-10-21 15:04 课程配套源代码\main-011.cpp
文件 932 2016-10-21 15:49 课程配套源代码\main-012.cpp
文件 619 2016-10-21 16:34 课程配套源代码\main-013.cpp
文件 1199 2016-10-21 17:19 课程配套源代码\main-014.cpp
文件 1007 2016-10-24 10:48 课程配套源代码\main-015.cpp
文件 994 2016-10-26 10:38 课程配套源代码\main-016.cpp
文件 1325 2016-10-26 12:18 课程配套源代码\main-017.cpp
文件 1260 2016-10-26 13:56 课程配套源代码\main-018.cpp
文件 1437 2016-10-26 15:43 课程配套源代码\main-019.cpp
文件 806 2016-10-26 16:13 课程配套源代码\main-020.cpp
文件 1077 2016-10-26 17:09 课程配套源代码\main-021.cpp
文件 1621 2016-10-28 10:04 课程配套源代码\main-022.cpp
文件 1035 2016-10-27 12:24 课程配套源代码\main-023.cpp
文件 1756 2016-10-27 14:58 课程配套源代码\main-024.cpp
文件 573 2016-10-27 15:14 课程配套源代码\main-025.cpp
文件 2001 2016-10-27 17:49 课程配套源代码\main-026.cpp
文件 2763 2016-10-28 10:59 课程配套源代码\main-027.cpp
文件 1748 2016-10-28 12:55 课程配套源代码\main-028.cpp
文件 1745 2016-10-28 15:22 课程配套源代码\main-029.cpp
文件 1402 2016-10-28 16:21 课程配套源代码\main-030.cpp
文件 1810 2016-10-28 17:36 课程配套源代码\main-031.cpp
............此处省略36个文件信息
- 上一篇:linux下硬盘拓展
- 下一篇:inSSIDer4 破解版
相关资源
- 基于OpenCV的数字识别468815
- 使用opencv去掉二值化图像中黑色面积
- opencv环境配置
- win10 64位下编译的opencv4.5.5库,opencv
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- opencv_contrib-3.4.0.zip
- opencv2.4.9源码分析——SIFT
- 用两个摄像头实现,双目标定,双目
- opencv_traincascade训练分类器,手势识别
- opencv3.0交叉编译用parallel.cpp
- 基于opencv的图像识别识别图像中的色
- 基于openCV的识别特定颜色区域
- 基于OpenCV的分水岭算法实现
- QT+opencv+OCR 身份证号码,银行卡号识别
- opencv视频特定颜色区域识别
- 把RGB转换为HSV和HSI然后根据黄色和蓝
- opencv视觉测距
- 基于Qt和opencv的身份证号码识别系统
- opencv_ffmpeg249.dll
- SfM稀疏三维点云重建--完整工程文件
- 基于opencv的数人头程序源代码
- 利用OpenCV中的Stitcher类实现全景图像拼
- opencv实现的sift算法源码,包含了图像
- openCV 上的小波变换
- 基于OPENCV的车牌识别系统设计
- 617张国内车牌60-17bmp图片用于OpenCV正样
- hog特征提取,c版本代码
- 基于Qt5.8+OpenCV3.2的Basler多相机触发开
- 基于Opencv实现的图像纠偏
- ImageWatch2019.vsix
评论
共有 条评论