- 博客(9)
- 资源 (6)
- 收藏
- 关注
原创 opencv学习笔记(十六)——图像对比度和亮度值
一、理论分析对于图像亮度和对比度的调整主要是加上或者乘上一个常数,理论公式如下:g(x,y)<c> = a*f(x,y)<c>+bf(x,y)< c >代表源图像第x行,第y列像素点第c通道的值g(x,y)< c>代表输出图像第x行,第y列像素点第c通道的值a(a>0)通常称为增益(放大倍数),用来控制图像的对比(为了观察结果,一般设置为0.0到3.0之间)b通常被称为偏置,用来控制图像的亮
2015-10-30 18:00:02 5308
原创 opencv学习笔记(十五)——图像融合
一、ROI区域图像叠加&图像混合ROI区域:设置感兴趣区域(region of interest); 使用ROI区域可以减少处理时间,增加精度。1,创建ROI区域方法一:使用表示矩阵区域Rect,它指定左上角坐标和矩阵的长和宽;Mat imageROI;imageROI = image(Rect(200, 200, logo.cols, logo.rows));方法二:指定感兴趣行或列的范围(R
2015-10-24 17:05:52 3807
原创 opencv学习笔记(十四)——图像像素的访问
方法一:使用指针遍历每个像素点:#include <opencv2/opencv.hpp>using namespace cv;void colorReduce(Mat inputImage, Mat outputImage, int div){ outputImage = inputImage.clone(); int rowNumber = outputImage
2015-10-23 17:53:11 738
原创 opencv学习笔记(十三)——数据结构
一、基础图像容器Mat1.1Mat介绍Mat是用来储存数字图像的一个类。它是IplImage的升级。Mat相对于IplImage最大的优点就是:不用手动开辟和释放图像内存,Mat能够自动管理内存。 Mat是一个类。包含两个数据部分:(1)矩阵头(包含矩阵尺寸,储存方法、存储地址等信息);(2)一个指向储存所有像素值的矩阵(根据所储存方法的不同,矩阵可以是不同的维数)的指针。 为了提高Opencv
2015-10-16 17:56:18 780
原创 opencv学习笔记(十二)——基础应用
这一节主要实现opencv的一些基础应用,如创建滑动条,以及控制鼠标操作等。一、滑块条的创建滑块条常用来动态调节参数。它需要依附窗口而存在。1,函数介绍:创建滑块条:createTrackbar()2,例程:
2015-10-15 12:45:56 596
转载 vector用法
vector是线性容器,它的元素严格的按照线性序列排序,和动态数组很相似,和数组一样,它的元素存储在一块连续的存储空间中,这也意味着我们不仅可以使用迭代器(iterator)访问元素,还可以使用指针的偏移方式访问,和常规数组不一样的是,vector能够自动存储元素,可以自动增长或缩小存储空间, vector的优点: 1. 可以使用下标访问个别的元素 2. 迭代器可以按照
2015-10-12 17:38:41 393
原创 opencv学习笔记(十一)——图像的载入,显示和输出到文件
说明说明一下,之前的opencv学习基本是在opencv1.0的基础下学习的,在这节以后的都是基于opencv2.X下的学习。参考的是浅墨大神的《opencv3编程入门一书》。 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 在OpenCV2.X中写程序的标准三
2015-10-12 12:41:10 7731
原创 opencv学习笔记(十一)——图像腐蚀和膨胀混合运用练习
图像腐蚀和膨胀混合运用经常应用在图像去噪,和骨架提取等场合。接下来的例子是运用图像腐蚀和膨胀进行去噪的例程: 简单的图像去噪过程就是:先对图像进行腐蚀,然后再进行膨胀。 代码如下:#include "cv.h"#include "highgui.h"void main(){ IplImage *src = cvLoadImage("G:\\Opencv\\素材\\腐蚀膨胀练习1.jp
2015-10-11 17:56:19 850
原创 USB转串口(PL2303)驱动安装
USB转串口驱动安装必须安装2009年之前的不然无法使用,一般电脑自动安装上去的是2015年的,就会无法识别。解决办法就是:卸载驱动 一定要勾上卸载此驱动程序 卸载之后,拔走PL2303串口,然后重新插上,如果驱动还不是2009年之前的继续上面的操作,卸载驱动,直到驱动是2009年之前的,并且电脑识别这个串口。
2015-10-11 12:55:06 2610
Deep Learning with TensorFlow
2018-01-10
opencv相关依赖库
2017-03-24
cifar-10-binary part1
2016-12-10
DirectShow +CameraDS
2016-01-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人