资源简介
OpenCV计算机视觉编程攻略/(加) Robert Laganière著 相银初译。。。opencv计算机视觉编程攻略第三版程序代码,压缩包包含各章节源程序和pdf图片
代码片段和文件信息
/*------------------------------------------------------------------------------------------*\
This file contains material supporting chapter 1 of the book:
OpenCV3 Computer Vision Application Programming Cookbook
Third Edition
by Robert Laganiere Packt Publishing 2016.
This program is free software; permission is hereby granted to use copy modify
and distribute this source code or portions thereof for any purpose without fee
subject to the restriction that the copyright notice may not be removed
or altered from any source or altered source distribution.
The software is released on an as-is basis and without any warranties of any kind.
In particular the software is not guaranteed to be fault-tolerant or free from failure.
The author disclaims all warranties with regard to this software any use
and any consequent failure is purely the responsibility of the user.
Copyright (C) 2016 Robert Laganiere www.laganiere.name
\*------------------------------------------------------------------------------------------*/
#include
#include
#include
#include
void onMouse( int event int x int y int flags void* param) {
cv::Mat *im= reinterpret_cast(param);
switch (event) { // dispatch the event
case cv::EVENT_LBUTTONDOWN: // mouse button down event
// display pixel value at (xy)
std::cout << “at (“ << x << ““ << y << “) value is: “
<< static_cast(im->at(cv::Point(xy))) << std::endl;
break;
}
}
int main() {
cv::Mat image; // create an empty image
std::cout << “This image is “ << image.rows << “ x “
<< image.cols << std::endl;
// read the input image as a gray-scale image
image= cv::imread(“puppy.bmp“ cv::IMREAD_GRAYSCALE);
if (image.empty()) { // error handling
// no image has been created...
// possibly display an error message
// and quit the application
std::cout << “Error reading image...“ << std::endl;
return 0;
}
std::cout << “This image is “ << image.rows << “ x “
<< image.cols << std::endl;
std::cout << “This image has “
<< image.channels() << “ channel(s)“ << std::endl;
// create image window named “My Image“
cv::namedWindow(“Original Image“); // define the window (optional)
cv::imshow(“Original Image“ image); // show the image
// set the mouse callback for this image
cv::setMouseCallback(“Original Image“ onMouse reinterpret_cast(&image));
cv::Mat result; // we create another empty image
cv::flip(imageresult1); // positive for horizontal
// 0 for vertical
// negative for both
cv::namedWindow(“Output Image“); // the output window
cv::imshow(“Output Image“ result);
cv::waitKey(0); // 0 to indefinitely wait for a key pressed
// specifying a positive value will wait for
// the given amount of msec
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-20 16:56 opencv计算机视觉编程攻略第三版(完整版)程序代码\
文件 23907980 2018-10-20 16:56 opencv计算机视觉编程攻略第三版(完整版)程序代码\0d2b5f0b-e9b0-4f37-b3c1-93ecfb177fc7.pdf
目录 0 2018-10-20 16:55 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\
文件 378 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\.gitattributes
文件 649 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\.gitignore
文件 1131 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\CMakeLists.txt
目录 0 2018-10-20 16:55 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter01\
文件 749 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter01\CMakeLists.txt
文件 420 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter01\README.txt
文件 3862 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter01\loadDisplaySave.cpp
文件 2341 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter01\logo.cpp
文件 3399 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter01\mat.cpp
目录 0 2018-10-20 16:55 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter02\
文件 941 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter02\CMakeLists.txt
文件 676 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter02\README.txt
文件 2192 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter02\addImages.cpp
文件 14418 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter02\colorReduce.cpp
文件 4692 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter02\contrast.cpp
文件 2157 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter02\remapping.cpp
文件 3214 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter02\saltImage.cpp
目录 0 2018-10-20 16:55 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter03\
文件 815 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter03\CMakeLists.txt
文件 563 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter03\README.txt
文件 3720 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter03\colorDetection.cpp
文件 2089 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter03\colordetector.cpp
文件 4599 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter03\colordetector.h
文件 2468 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter03\extractob
文件 5687 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter03\huesaturation.cpp
目录 0 2018-10-20 16:55 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter04\
文件 1571 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter04\CMakeLists.txt
文件 999 2017-02-06 18:59 opencv计算机视觉编程攻略第三版(完整版)程序代码\OpenCV3-Computer-Vision-Application-Programming-Cookbook-Third-Edition-master\Chapter04\README.txt
............此处省略563个文件信息
相关资源
- 泛微e-officev10.0_20181128标准补丁程序(
- opencv_contrib-3.4.1.zip
- 利物直播购物商城小程序V1.1.48后台源
- opencv交叉编译依赖包
- 程序员的数学1-2-3
- 基于单片机的密码锁实现程序有注释
- 《OpenCV3编程入门》书本配套源代码
- opencv分类器训练
- 自动更新程序源码
- opencv_contrib-3.4.2
- 基于颜色特征的图像检索技术研究与
- Opencv_SVM训练_识别几何体
- 无人驾驶车辆模型预测控制 书本+源程
- QT+OpenCV+VS Gerber光绘文件识别2
- Intel汇编语言程序设计(中文第5版)
- 基于Hopfield神经网络的数字识别程序
- 为PL/0语言建立一个语法分析程序BLO
- STC12C60S2单片机双串口程序
- opencv-4.4.0-vc14_vc15.rar 官网
- IDL程序设计——数据可视化与ENVI二次
- 2000套微信小程序2020年.rar
- 视频摄像头SSD模型目标检测.zip
- 狮子鱼独立版12.8.0亲测可用含直播、
- opencv420_cuda_dnn编译_缓存文件.zip
- OpenCV3编程入门+学习opencv+opencv函数手
- ACM大学生程序设计竞赛在线题库精选
- 编译原理第2版test语言 词法语法语义
- 单片机超声波测距仿真及源程序
- OpenCV 3.2 官方手册 CHM
- 完整版基于OPENCV的车牌识别系统源码
评论
共有 条评论