- 博客(13)
- 资源 (7)
- 收藏
- 关注
原创 输入输出XML和YAML文件
#include "opencv2/core/core.hpp"#include "opencv2/highgui/highgui.hpp"#include "iostream"#include "string"using namespace std;using namespace cv;class MyData{public: MyData(): A(0), X(0),
2015-05-28 18:03:15 501
原创 ostream& operator << (ostream& os, Point& pt)
为什么这么写ostream& operator 而不写成ostream operator ostream&这个返回值类型用定义成别名的形式吗??在网上找到了答案如下:如果写成这样ostream operator 则:Point a, b;cout错误,只能写为:coutcout原因在于cout相当于:(cout第一个(
2015-05-28 13:52:22 10844 2
原创 离散傅立叶变换-----学习记录(7)
#include "opencv2/highgui/highgui.hpp"#include "opencv2/core/core.hpp"#include "opencv2/imgproc/imgproc.hpp"#include "iostream"using namespace cv;int main(int argc, char* argv[]){ const char
2015-05-27 10:56:31 737
原创 随机数发生器&绘制文字-----学习记录(6)
#include "opencv2/highgui/highgui.hpp"#include "opencv2/core/core.hpp"using namespace cv;#define window_high 500#define window_width 800#define NUMBER 10#define DELAY 500#define x_1 1#define x
2015-05-22 21:12:01 651
原创 基本绘图-----学习记录(5)
#include "opencv2/highgui/highgui.hpp"#include "opencv2/core/core.hpp"#include "iostream"#define w 400using namespace std;using namespace cv;void MyEllipse( Mat, double ); //创建椭圆void MyFilledC
2015-05-21 21:45:07 467
原创 改变图像的对比度和亮度-----学习记录(4)
#include "stdafx.h"#include "opencv2/highgui/highgui.hpp"#include "opencv2/core/core.hpp"#include "iostream"using namespace cv;using namespace std;int main(int argc, char* argv[]){ int alpha
2015-05-20 20:55:31 526
原创 两幅图像求和:求混合(blending)-----学习记录(3)
#include "stdafx.h"#include #include using namespace cv;using namespace std;int main(int argc, char* argv[]){ double alpha = 0.5; double beta; double input; Mat src1, src2, dst; cout<<"S
2015-05-14 21:54:20 689
原创 filter2D滤波处理函数-----学习记录(2)
#include "stdafx.h"#include "opencv2/core/core.hpp"#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp"using namespace cv;int main(int argc, char* argv[]){ Mat I, K,k
2015-05-13 22:02:52 959
转载 _C_#ifdef
这几个宏是为了进行条件编译。一般情况下,源程序中所有的行都参加编译。但是有时希望对其中一部分内容只在满足一定条件才进行编译,也就是对一部分内容指定编译的条件,这就是“条件编译”。有时,希望当满足某条件时对一组语句进行编译,而当条件不满足时则编译另一组语句。 条件编译命令最常见的形式为: #ifdef 标识符 程序段1 #else 程序段2
2015-05-08 18:26:56 365
转载 计算机视觉基础1——视差与深度信息
资料来源:Robert Collins,CSE486, Penn State第8讲Stereo Vision深度信息感知是人类产生立体视觉的前提。生理过程一定是相当复杂,此处,我们只从物理角度,并采用数学的方法来讨论。Inferring depth from images taken at the same time by two or more cameras.
2015-05-05 20:22:09 3066
原创 读取、修改、保存图像-----学习记录(1)
#include "stdafx.h"#include #include using namespace cv;int main( int argc, char** argv ){ if(argc != 2) //命令参数个数 { printf("useage: %s \n ", argv[0]); //命令参数没有输入,就显示需要文件名字 return -1;
2015-05-02 20:19:17 786
原创 opencv图像读取,视频读取
#include "stdafx.h"#include "cv.h"#include "highgui.h"#include "cxcore.h"int main(int argc, char* argv[]){ IplImage * src1 = cvLoadImage("E:\\个人资料\\小新头像.jpg",0); IplImage * src2 = cvLoadImage(
2015-05-02 18:51:36 743
转载 Visual Studio+VAssistX自动添加注释,函数头注释,文件头注释
1. 增加函数头注释右击函数名,然后依次点击“Refacto”–>“Document Method”,这个时候函数头注释就会蹦出来,不过这个注释的格式是默认的,想修改注释格式,可以通过以下方法。点击 “VAssistX”–>“Visual VAssistX Options”然后选择Suggestions,再点击“Edit VA Snippets”。在打开的窗口中选择Refactor
2015-05-02 13:06:15 1326
官方PSNR和SSIM---matlab实现
2015-12-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人