PARP Research Group | Universidad de Murcia |
examples/AugmentedReality/AugmentedReality.cpp File ReferenceA simple augmented reality example application. More... #include <QVApplication> #include <QVDefaultGUI> #include <QVVideoReaderBlock> #include <QVImageCanvas> #include <QVNumericPlot> #include <QVProcessingBlock> #include <QVImage> #include <QVPolyline> #include <QVPolylineF> #include <QVMatrix> #include <qvipp.h> #include <qvip.h> #include <qvprojective.h> #include <GL/glut.h> #include <QVCameraPose> #include <QV3DModel> #include <qv3dobjects.h> Go to the source code of this file. Detailed DescriptionA 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: 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: UsageOnce compiled, the program should be used with this command line: ./AugmentedReality --URL=<path or url to video>
Definition in file AugmentedReality.cpp. |