资源简介
包括:OpenCV计算机视觉编程攻略第2版、深入理解OpenCV 实用计算机视觉项目解析、学习OpenCV(含源码)
作为学习opencv来说很有帮助,教材清晰,代码齐全
代码片段和文件信息
// Example 10-1. Pyramid Lucas-Kanade optical flow code
//
/* *************** License:**************************
Oct. 3 2008
Right to use this code in any way you want without warrenty support or any guarentee of it working.
BOOK: It would be nice if you cited it:
Learning OpenCV: Computer Vision with the OpenCV Library
by Gary Bradski and Adrian Kaehler
Published by O‘Reilly Media October 3 2008
AVAILABLE AT:
http://www.amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134
Or: http://oreilly.com/catalog/9780596516130/
ISBN-10: 0596516134 or: ISBN-13: 978-0596516130
OTHER OPENCV SITES:
* The source code is on sourceforge at:
http://sourceforge.net/projects/opencvlibrary/
* The OpenCV wiki page (As of Oct 1 2008 this is down for changing over servers but should come back):
http://opencvlibrary.sourceforge.net/
* An active user group is at:
http://tech.groups.yahoo.com/group/OpenCV/
* The minutes of weekly OpenCV development meetings are at:
http://pr.willowgarage.com/wiki/OpenCV
************************************************** */
#include
#include
#include
#include
const int MAX_CORNERS = 500;
int main(int argc char** argv) {
// Initialize load two images from the file system and
// allocate the images and other structures we will need for
// results.
//
IplImage* imgA = cvLoadImage(“OpticalFlow0.jpg“CV_LOAD_IMAGE_GRAYSCALE);
IplImage* imgB = cvLoadImage(“OpticalFlow1.jpg“CV_LOAD_IMAGE_GRAYSCALE);
CvSize img_sz = cvGetSize( imgA );
int win_size = 10;
IplImage* imgC = cvLoadImage(“OpticalFlow1.jpg“CV_LOAD_IMAGE_UNCHANGED);
// The first thing we need to do is get the features
// we want to track.
//
IplImage* eig_image = cvCreateImage( img_sz IPL_DEPTH_32F 1 );
IplImage* tmp_image = cvCreateImage( img_sz IPL_DEPTH_32F 1 );
int corner_count = MAX_CORNERS;
CvPoint2D32f* cornersA = new CvPoint2D32f[ MAX_CORNERS ];
cvGoodFeaturesToTrack(
imgA
eig_image
tmp_image
cornersA
&corner_count
0.01
5.0
0
3
0
0.04
);
cvFindCornerSubPix(
imgA
cornersA
corner_count
cvSize(win_sizewin_size)
cvSize(-1-1)
cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS200.03)
);
// Call the Lucas Kanade algorithm
//
char features_found[ MAX_CORNERS ];
float feature_errors[ MAX_CORNERS ];
CvSize pyr_sz = cvSize( imgA->width+8 imgB->height/3 );
IplImage* pyrA = cvCreateImage( pyr_sz IPL_DEPTH_32F 1 );
IplImage* pyrB = cvCreateImage( pyr_sz IPL_DEPTH_32F 1 );
CvPoint2D32f* cornersB = new CvPoint2D32f[ MAX_CORNERS ];
cvCalcOpticalFlowPyrLK(
imgA
imgB
pyrA
pyrB
cornersA
cornersB
corner_count
cvSize( win_sizewin_size )
5
features_found
feature_errors
cvTermCriteria( CV_TERMCRIT_ITER | CV_TERMCRIT_EPS 20 .3 )
0
);
/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 11454585 2018-09-18 08:37 OpenCV计算机视觉编程攻略第2版.pdf
目录 0 2019-01-30 19:35 学习OpenCV(含源码)\
目录 0 2019-01-30 19:35 学习OpenCV(含源码)\LearningOpenCV_Code\
文件 6148 2008-10-07 15:10 学习OpenCV(含源码)\LearningOpenCV_Code\.DS_Store
文件 5237 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\BlueCup.jpg
文件 97472 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\HandIndoorColor.jpg
文件 145318 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\HandOutdoorColor.jpg
文件 106007 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\HandOutdoorSunColor.jpg
文件 1094 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\License.txt
文件 4656 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\Makefile.txt
文件 22255 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\OpenCV_Chessboard.png
文件 123322 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\OpticalFlow0.jpg
文件 120223 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\OpticalFlow1.jpg
文件 5795 2008-10-08 16:54 学习OpenCV(含源码)\LearningOpenCV_Code\ReadMe_run_programs.txt
文件 189623 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\adrian.jpg
文件 373704 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\agaricus-lepiota.data
目录 0 2019-01-30 19:35 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\
文件 6148 2008-10-07 15:08 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\.DS_Store
文件 317775 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0214.jpg
文件 317832 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0214L.jpg
文件 325383 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0215.jpg
文件 325446 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0215L.jpg
文件 302958 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0217.jpg
文件 302321 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0217L.jpg
文件 296209 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0218.jpg
文件 295342 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0218L.jpg
文件 297508 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0219.jpg
文件 297073 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0219L.jpg
文件 348274 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0220.jpg
文件 348262 2008-10-07 10:00 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\IMG_0220L.jpg
文件 33280 2009-12-30 19:24 学习OpenCV(含源码)\LearningOpenCV_Code\birdseye\Thumbs.db
............此处省略152个文件信息
相关资源
- Gerber文件的编辑程序
- 超级场景清理器(SPCleaner)v1.0免费版
- 基于ARM7 PWM定时器的图像传感器时序信
- 基于STM32的嵌入式双目图像采集系统设
- CT图像-肺结节检测
- SAR图像处理1
- FMEDesktop2019特别版forMacv2019.0.0.0.19181苹
- Graphics Magic图像处理魔术师,含Delph
- 易语言画板图像缩放源
- 铝合金方波交流TIG焊熔池图像处理
- 基于FPGA的彩色线阵CCD图像采集系统设
- 开源图像库leptonica头文件和库文件
- 编译好的json_lib.lib 包含64位,32位,头
- 带式输送机托辊红外图像分割与定位
- 浅析遥感图像解译在矿区公路建设中
- 基于图像处理的智能车寻迹算法设计
- GAN对抗式生成网络的应用:从图片上
- 易语言图像编码、解码器源码易语言
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- BricsysBricsCadPlatiniumv17.2.12.1Linux64位免费
- 基于图像三维重建软件visualSFM
- opencv_contrib-3.4.0.zip
- 基于带有边缘信息的互信息最大化的
- BoW|Pyramid BoW+SVM进行图像分类
- 1:10M全球地形高程光栅格图像
- opencv2.4.9源码分析——SIFT
- img格式遥感图像读取代码
- 医学超声图像处理研究+哈尔滨工业大
- 基于libsvm的图像分割代码
- 用两个摄像头实现,双目标定,双目
评论
共有 条评论