资源简介
基于 QT 的面向对象的多平台计算机视觉库。可以方便的创建图形化应用程序,算法库主要从 OpenCV,GSL,CGAL,IPP,Octave 等高性能库借鉴而来。
代码片段和文件信息
/*
* Copyright (C) 2011 2012. PARP Research Group.
*
* University of Murcia Spain.
*
* This file is part of the QVision library.
*
* QVision is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation version 3 of the License.
*
* QVision is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with QVision. If not see .
*/
/*!
@file
@ingroup ExamplePrograms
@brief A simple augmented reality example application.
This application estimates the intrinsic calibration and camera pose for the frames of an input video sequence in relation with a template pattern.
The application detects the following template on the input frames:
@image html template.png
@image latex template.png
Each frame the planar homography which maps the original pose of the template to its location is estimated.
If successful the application obtains the camera pose and an estimation of the camera focal distance from this homography.
By averaging these focal values a robust estimation for the camera calibration is obtained.
A standard image canvas augments the input frames with an artificial object using the estimated camera pose and intrinsic calibration:
@image html teapot.png
@image latex teapot.png
@section Usage
Once compiled the program should be used with this command line:
@code
./AugmentedReality --URL=
@endcode
@param URL Video source identification string. See section @ref QVMPlayerURLFormat for further info about its format.
@author PARP Research Group. University of Murcia Spain.
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include jects.h>
// Use Otsu threshold to detect contours around dark areas at the image.
QList detectContours(const QVImage &imageIn)
{
uChar otsu_th;
ComputeThreshold_Otsu(imageInotsu_th);
return getConnectedSetBorderContoursThreshold(imageInotsu_th);
}
// Detects in an image the contour of the largest dark region not touching the image boundaries.
QVPolyline selectBestContour(const QList &contours const int templateCount const int cols const int rows const int minCount = 30 const double maxError = 5.0)
{
double bestError = 1e15;
QVPolyline bestContour;
foreach(QVPolyline contour
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-12-22 19:23 qvision.0.8.1\
文件 2316 2012-12-22 19:23 qvision.0.8.1\README
文件 4762 2012-12-22 19:23 qvision.0.8.1\qvision.pro
文件 7639 2012-12-22 19:23 qvision.0.8.1\COPYING.LESSER
文件 12065 2012-12-22 19:23 qvision.0.8.1\config.pri.example
文件 1760 2012-12-22 19:23 qvision.0.8.1\qvproject.pri
文件 5907 2012-12-22 19:23 qvision.0.8.1\common.pri
目录 0 2012-12-22 19:23 qvision.0.8.1\src\
文件 833 2012-12-22 19:23 qvision.0.8.1\src\QVGenericImage
目录 0 2012-12-22 19:23 qvision.0.8.1\src\qvipp\
文件 19081 2012-12-22 19:23 qvision.0.8.1\src\qvipp\qvipp.cpp
文件 147276 2012-12-22 19:23 qvision.0.8.1\src\qvipp\qvippfunctions.cpp
文件 37858 2012-12-22 19:23 qvision.0.8.1\src\qvipp\qvipp.h
文件 308174 2012-12-22 19:23 qvision.0.8.1\src\qvipp\qvippfunctions.h
文件 12505 2012-12-22 19:23 qvision.0.8.1\src\qvipp\macros.h
文件 1954 2012-12-22 19:23 qvision.0.8.1\src\qvsfm.pri
文件 854 2012-12-22 19:23 qvision.0.8.1\src\QVCPUPlot
文件 2777 2012-12-22 19:23 qvision.0.8.1\src\qvmkl.pri
文件 832 2012-12-22 19:23 qvision.0.8.1\src\QVCUDAImage
文件 840 2012-12-22 19:23 qvision.0.8.1\src\qvnumericalanalysis.h
目录 0 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\
文件 10779 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\readSfMReconstruction.h
目录 0 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\
目录 0 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\sba-1.6\
文件 49834 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\sba-1.6\sba_lapack.c
文件 16501 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\sba-1.6\sba_chkjac.c
文件 1039 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\sba-1.6\sba.pri
文件 3164 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\sba-1.6\README.txt
文件 17992 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\sba-1.6\LICENSE
文件 39365 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\sba-1.6\sba_levmar_wrap.c
文件 7520 2012-12-22 19:23 qvision.0.8.1\src\qvsfm\laSBA\sba-1.6\sba.h
............此处省略2085个文件信息
评论
共有 条评论