资源简介
具体见博客:http://blog.csdn.net/u014773418/article/details/50517857

代码片段和文件信息
// Given a view of a checkerboard on a plane view that image and a
// list of others frontal parallel to that plane
//
// This presumes that you have previously callibrated your camera and stored
// an instrinics and distortion model for your camera.
//
// console application.
// Gary Bradski Oct 3 2008
//
/* *************** 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
void help(){
printf(“Birds eye view\n\n“
“ birdseye board_w board_h intrinsics_mat.xml distortion_mat.xml checker_image \n\n“
“Where: board_{wh} are the # of internal corners in the checkerboard\n“
“ intrinsic intrinsic path/name of matrix from prior calibration\n“
“ distortion distortion path/name of matrix from pror calibration\n“
“ checker_image is the path/name of image of checkerboard on the plane \n“
“ Frontal view of this will be shown.\n\n“
“ ADJUST VIEW HEIGHT using keys ‘u‘ up ‘d‘ down. ESC to quit.\n\n“);
}
int main(int argc char* argv[]) {
if(argc!=6)
return -1;
help();
//INPUT PARAMETERS:
int board_w = atoi(argv[1]);
int board_h = atoi(argv[2]);
int board_n = board_w * board_h;
CvSize board_sz = cvSize( board_w board_h );
CvMat *intrinsic = (CvMat*)cvLoad(argv[3]);
CvMat *distortion = (CvMat*)cvLoad(argv[4]);
IplImage *image = 0 *gray_image = 0;
if((image = cvLoadImage(argv[5]))== 0){
printf(“Error: Couldn‘t load %s\n“argv[5]);
return -1;
}
gray_image = cvCreateImage(cvGetSize(image)81);
cvCvtColor(image gray_image CV_BGR2GRAY);
//UNDISTORT OUR IMAGE
IplImage* mapx = cvCreateImage( cvGetSize(image) IPL_DEPTH_32F 1 );
IplImage* mapy = cvCreateImage( cvGetSize(image) IPL_DEPTH_32F 1 );
cvInitUndistortMap(
intrinsic
distortion
mapx
mapy
);
IplImage *t = cvCloneImage(image);
cvRemap( t image mapx mapy );
//GET THE CH
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 318467 2016-01-14 13:18 鸟瞰图变换\鸟瞰图变换\0.jpg
文件 636 2016-01-14 13:28 鸟瞰图变换\鸟瞰图变换\Debug\cl.command.1.tlog
文件 16168 2016-01-14 13:28 鸟瞰图变换\鸟瞰图变换\Debug\CL.read.1.tlog
文件 408 2016-01-14 13:28 鸟瞰图变换\鸟瞰图变换\Debug\CL.write.1.tlog
文件 2984 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\li
文件 6758 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\li
文件 710 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\li
文件 107765 2016-01-14 13:28 鸟瞰图变换\鸟瞰图变换\Debug\main.obj
文件 492 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\mt.command.1.tlog
文件 788 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\mt.read.1.tlog
文件 7862 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\mt.read.2.tlog
文件 316 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\mt.write.1.tlog
文件 543744 2016-01-14 13:28 鸟瞰图变换\鸟瞰图变换\Debug\vc100.idb
文件 929792 2016-01-14 13:28 鸟瞰图变换\鸟瞰图变换\Debug\vc100.pdb
文件 381 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\鸟瞰图变换.exe.intermediate.manifest
文件 84 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\鸟瞰图变换.lastbuildstate
文件 2873 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug\鸟瞰图变换.log
文件 248 2016-01-14 11:00 鸟瞰图变换\鸟瞰图变换\Distortion.xm
文件 267 2016-01-14 11:00 鸟瞰图变换\鸟瞰图变换\Intrinsics.xm
文件 6604 2016-01-14 13:28 鸟瞰图变换\鸟瞰图变换\main.cpp
文件 3361 2016-01-13 15:29 鸟瞰图变换\鸟瞰图变换\鸟瞰图变换.vcxproj
文件 1126 2016-01-13 15:29 鸟瞰图变换\鸟瞰图变换\鸟瞰图变换.vcxproj.filters
文件 409 2016-01-14 11:23 鸟瞰图变换\鸟瞰图变换\鸟瞰图变换.vcxproj.user
文件 912 2016-01-13 15:27 鸟瞰图变换\鸟瞰图变换.sln
..A..H. 15872 2016-01-14 15:25 鸟瞰图变换\鸟瞰图变换.suo
目录 0 2016-01-14 15:24 鸟瞰图变换\鸟瞰图变换\Debug
目录 0 2016-01-14 13:18 鸟瞰图变换\鸟瞰图变换
目录 0 2016-01-14 15:25 鸟瞰图变换
----------- --------- ---------- ----- ----
1969027 28
............此处省略1个文件信息
相关资源
- 基于OpenCV的数字识别468815
- 使用opencv去掉二值化图像中黑色面积
- opencv环境配置
- win10 64位下编译的opencv4.5.5库,opencv
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- opencv_contrib-3.4.0.zip
- opencv2.4.9源码分析——SIFT
- 用两个摄像头实现,双目标定,双目
- opencv_traincascade训练分类器,手势识别
- opencv3.0交叉编译用parallel.cpp
- 基于opencv的图像识别识别图像中的色
- 基于openCV的识别特定颜色区域
- 基于OpenCV的分水岭算法实现
- QT+opencv+OCR 身份证号码,银行卡号识别
- opencv视频特定颜色区域识别
- 把RGB转换为HSV和HSI然后根据黄色和蓝
- opencv视觉测距
- 基于Qt和opencv的身份证号码识别系统
- opencv_ffmpeg249.dll
- SfM稀疏三维点云重建--完整工程文件
- 基于opencv的数人头程序源代码
- 利用OpenCV中的Stitcher类实现全景图像拼
- opencv实现的sift算法源码,包含了图像
- openCV 上的小波变换
- 基于OPENCV的车牌识别系统设计
- 617张国内车牌60-17bmp图片用于OpenCV正样
- hog特征提取,c版本代码
- 基于Qt5.8+OpenCV3.2的Basler多相机触发开
- 基于Opencv实现的图像纠偏
- ImageWatch2019.vsix
评论
共有 条评论