Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

fullcalib.cpp File Reference

All in one geometric and photometric calibration example. More...

#include <iostream>
#include "cv.h"
#include "highgui.h"
#include "calibmodel.h"

Include dependency graph for fullcalib.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void show_result (planar_object_recognizer &recognizer, IplImage *video, IplImage *dst)
void augment_scene (CalibModel &model, IplImage *frame, IplImage *display)
bool add_detected_homography (planar_object_recognizer &detector, CamCalibration &calib)
bool add_detected_homography (planar_object_recognizer &detector, CamAugmentation &a)
bool geometric_calibration (CalibModel &model, CvCapture *capture, bool cache)
bool photometric_calibration (CalibModel &model, CvCapture *capture, int nbImages, bool cache)
void usage (const char *s)
int main (int argc, char **argv)


Detailed Description

All in one geometric and photometric calibration example.

Author:
Julien Pilet
This example interactively ask the user to show a calibration pattern, train a classifier to recognize it, calibrates the camera geometry, computes an irradiance map, and finally "augment" the video by pasting an illumination corrected polygon on the target.

Definition in file fullcalib.cpp.


Function Documentation

bool add_detected_homography planar_object_recognizer detector,
CamAugmentation a
 

Definition at line 381 of file fullcalib.cpp.

References CamAugmentation::AddHomography(), planar_object_recognizer::H, planar_object_recognizer::match_number, and planar_object_recognizer::matches.

bool add_detected_homography planar_object_recognizer detector,
CamCalibration calib
 

Definition at line 362 of file fullcalib.cpp.

References CamCalibration::AddHomography(), calib, planar_object_recognizer::H, planar_object_recognizer::match_number, and planar_object_recognizer::matches.

void augment_scene CalibModel model,
IplImage *  frame,
IplImage *  display
[static]
 

Definition at line 307 of file fullcalib.cpp.

References CalibModel::augm, CalibModel::corners, CalibModel::detector, LightMap::getBias(), LightMap::getGain(), CamAugmentation::GetObjectToWorld(), CamAugmentation::GetProjectionMatrix(), CalibModel::image, CalibModel::map, planar_object_recognizer::object_is_detected, and LightMap::readMap().

bool geometric_calibration CalibModel model,
CvCapture *  capture,
bool  cache
 

Definition at line 102 of file fullcalib.cpp.

References add_detected_homography(), CamCalibration::AddCamera(), CalibModel::augm, calib, CamCalibration::Calibrate(), planar_object_recognizer::detect(), CalibModel::detector, CamAugmentation::LoadOptimalStructureFromFile(), CamCalibration::PrintOptimizedResultsToFile1(), and show_result().

int main int  argc,
char **  argv
 

Definition at line 40 of file fullcalib.cpp.

References CalibModel::buildCached(), geometric_calibration(), modelFile, photometric_calibration(), and usage().

bool photometric_calibration CalibModel model,
CvCapture *  capture,
int  nbImages,
bool  cache
 

Definition at line 184 of file fullcalib.cpp.

References CamAugmentation::Accomodate(), add_detected_homography(), LightMap::addNormal(), CalibModel::augm, augment_scene(), CamAugmentation::Clear(), LightMap::computeLightParams(), planar_object_recognizer::detect(), CalibModel::detector, LightMap::getBias(), LightMap::getGain(), IplTexture::getIm(), CamAugmentation::GetObjectToWorld(), planar_object_recognizer::H, LightMap::isReady(), LightMap::load(), LightMap::map, CalibModel::map, planar_object_recognizer::object_is_detected, LightMap::reflc, and LightMap::save().

void show_result planar_object_recognizer recognizer,
IplImage *  video,
IplImage *  dst
 

Definition at line 287 of file fullcalib.cpp.

References cvPoint(), planar_object_recognizer::match_number, planar_object_recognizer::matches, and planar_object_recognizer::object_is_detected.

void usage const char *  s  ) 
 

Definition at line 29 of file fullcalib.cpp.


Generated on Mon Oct 2 14:36:01 2006 for bazar by  doxygen 1.3.9.1