学习OpenCV课后题3.4
来源:互联网 发布:淘宝哪个打折软件好用 编辑:程序博客网 时间:2024/05/07 10:56
// Ex3_4.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <cv.h>
#include <cvcam.h>
#include <cxcore.h>
#include <highgui.h>
#pragma comment(lib,"cv.lib")
#pragma comment(lib,"cvcam.lib")
#pragma comment(lib,"cxcore.lib")
#pragma comment(lib,"highgui.lib")
int main(int argc, char* argv[])
{
CvMat *Mat = cvCreateMat( atoi(argv[1]), atoi(argv[2]), CV_8UC3);
cvSetZero(Mat);
for (int nHeight = 100; nHeight < 300; nHeight++ )
{
uchar *ptr = (uchar*)(Mat->data.ptr + nHeight*Mat->step);
for (int nWidth = 100; nWidth < 300; nWidth++)
{
ptr[nWidth*3+1] = 255;
}
}
cvNamedWindow("Show");
cvShowImage("Show",Mat);
cvWaitKey();
cvReleaseMat(&Mat);
cvDestroyWindow("Show");
return 0;
}
- 学习OpenCV课后题3.4
- 学习OpenCV课后题3.1
- 学习OpenCV课后题3.2
- 学习OpenCV课后题3.3
- 学习OpenCV课后题3.6
- 学习OpenCV课后题3.7
- 学习OpenCV课后题4.1
- 学习OpenCV课后题4.2
- 学习OpenCV课后题4.3
- 学习OpenCV课后题4.4
- 学习OpenCV课后题4.7
- 《学习opencv》课后题4.1
- 学习OpenCV课后题3.8(a)
- 学习OpenCV课后题3.8(b)
- 《学习OpenCV》 第二章 课后题3
- 《学习OpenCV》第二章 课后题5
- 《学习OpenCV》第三章课后题1
- 《学习OpenCV》第三章课后题2
- 网站发布后,Excel导入路径问题
- 学习OpenCV课后题3.2
- Windows Server 2003 iis为什么 无法浏览ASP文档
- 学习OpenCV课后题3.3
- 解决win2003 卸载IIs后重新安装 提示“不能复制文文件”的问题
- 学习OpenCV课后题3.4
- wince系统添加Intel8259的网卡驱动 问题
- struts2 格式化日期输出
- 学习OpenCV课后题3.5(改进为彩色)
- python Json的一点收获,自定义序列化方法
- VC+MapX鹰眼实现
- jQuery 让 TreeView 实现全选
- 学习OpenCV课后题3.6
- 【收集的资料】linux 文件操作的一些命令