一、两幅图像线性混合线性混合,就是g(x) = a*f1(x) +b*f2(x)。其中g为输出,f1、f2为输入。a+b=1。作用1:线性混合可以用于去噪,假设噪声的产生符合均值为零、标准差的独立分布。多个高斯分布求平均值,即可去除噪声。作用2:用于两张图片的切换。a从大到小变化,b从小到大变化。g...
分类:
其他好文 时间:
2014-11-20 11:36:29
阅读次数:
302
对像素(i, j)做线性滤波的方法:1. 做一个3X3的矩阵,分别赋予(i, j)和它的4邻域和D邻域相应的权值。2. 计算。示例代码如下: 1 void Sharpen(const Mat& myImage,Mat& Result) 2 { 3 CV_Assert(myImage.dept...
分类:
其他好文 时间:
2014-11-19 21:52:36
阅读次数:
217
看到很多配置的文章,都没法正常走完流程
使用到的资源,都是今天为止最新的:
python-2.7.8.amd64.msi
opencv-3.0.0-beta.exe
numpy-MKL-1.9.1.win-amd64-py2.7.exe
步骤:
1.下载最新Python3.4.2后安装opencv时说python版本不对,所以卸载了Python3.4.2重新下载了pyt...
分类:
编程语言 时间:
2014-11-19 18:42:23
阅读次数:
499
为了尽可能保证OpenCV的特性,使用OpenCV源码编译安装在linux上。先从安装其依赖项开始,以ubuntu 14.04.X为例讲解在Linux上源码编译安装OpenCV,其他linux版本可以类比安装。...
分类:
系统相关 时间:
2014-11-19 18:38:47
阅读次数:
335
调试opencv程序时,发现使用cvShowImage函数无法显示图片,显示窗口完全灰化。解决办法就是在后面加上waitkey函数。1 IplImage *gray = cvLoadImage(imgFile.c_str(), CV_LOAD_IMAGE_GRAYSCALE);2 cvSho...
分类:
其他好文 时间:
2014-11-19 18:02:58
阅读次数:
373
使用查找表LUT #include #include #include using namespace std;using namespace cv;int main(int argc, char **argv){ double t = (double)getTickCount(); const c...
分类:
其他好文 时间:
2014-11-19 17:37:21
阅读次数:
164
在区间(0,100),二次导数恒大于0,f(x)有极小值,用一次导数求极小值点;
#include
#include
#include
#include
const double eps=1e-6;
double f(double x,double y)
{
return 6*pow(x,7)+8*pow(x,6)+7*pow(x,3)+5*pow(x,2)-y*x;
}
doubl...
分类:
其他好文 时间:
2014-11-19 11:18:59
阅读次数:
242
在区间(0,100),二次导数恒大于0,f(x)有极小值,用一次导数求极小值点;
#include
#include
#include
#include
const double eps=1e-6;
double f(double x,double y)
{
return 6*pow(x,7)+8*pow(x,6)+7*pow(x,3)+5*pow(x,2)-y*x;
}
doubl...
分类:
其他好文 时间:
2014-11-19 01:20:07
阅读次数:
167
OpenCV的一些操作,如生成随机矩阵,高斯矩阵,矩阵相乘之类的/*功能:说明矩阵的一些操作方法*/#include "cv.h"//该头文件包含了#include "cxcore.h"#include "highgui.h"#include void PrintMat(CvMat *A); // ...
分类:
其他好文 时间:
2014-11-19 00:28:53
阅读次数:
255
Hough 圆变换 和 Hough 直线变换原理相同,只是参数空间不同 : In the line detection case, a line was defined by two parameters . In the circle case, we need three parameters ...
分类:
其他好文 时间:
2014-11-19 00:14:29
阅读次数:
198