Learning OpenCV Capture My Keys
来源:互联网 发布:删除数组中为空的元素 编辑:程序博客网 时间:2024/05/21 03:20
《学习OpenCV 中文版》的课后习题,我做的答案中的一部分,vc6.0下编译通过。
Chapter3.3
题目要求我们先定义一个数组,再使用函数cvPtr2D()将指针指向中间的通道(“绿色”),以给定的两个点画一个绿色的长方形。
网上参考的代码很多都是用cvRectangle做的,我觉得题目本意是要求用指针做,随手写的代码如下:
/***********************************************************************************
********************************分***割***线*****************************************
***********************************************************************************/
3.4:用指针算法绘制一个绿色平面;
CvScalar本质上就是一个结构体 成员是一个有4个元素的double类型的数组,你喜欢用它干啥就干啥
/***********************************************************************************
********************************分***割***线*****************************************
***********************************************************************************/
3.6:
- Learning OpenCV Capture My Keys
- Learning OpenCV Capture 2
- 英语练习Where are my keys
- Learning OpenCV
- learning opencv
- learning Opencv
- my machine learning
- My learning backups
- My experience of learning English
- My Blog for java learning
- my vbs learning points (1)
- My deep learning reading list
- My deep learning reading list
- My story of programming learning
- My Roadmap in Reinforcement Learning
- How can I handle hardware keys in my application?
- Why is XKeysymToKeycode() making all of my keys lowercase?
- Keys
- symbian 短信的发送和监听
- 【安全】2010年最危险的编程
- DLL 的编写,引用,导出
- 【C/C++语言入门篇】-- 文件操作
- Ubuntu server 10.04安装apache+passenger+ruby+rails+mysql环境
- Learning OpenCV Capture My Keys
- 好
- android (1)
- Teechart7 for Delphi7安装说明
- The Making of God of War III
- 死锁产生的4个必要条件,如何检测,解除死锁
- iptables简单配置
- linux乱码
- 高手进阶 学会做嵌入式Linux操作系统