bazar
1.3.1
|
All in one geometric and photometric calibration example. More...
Go to the source code of this file.
Functions | |
void | show_result (planar_object_recognizer &recognizer, IplImage *video, IplImage *dst) |
static 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) |
All in one geometric and photometric calibration example.
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.
bool add_detected_homography | ( | planar_object_recognizer & | detector, |
CamCalibration & | calib | ||
) |
Definition at line 362 of file fullcalib.cpp.
References CamCalibration::AddHomography(), PyrImage::convCoordf(), planar_object_recognizer::H, image_object_point_match::image_point, image_object_point_match::inlier, object_keypoint::M, planar_object_recognizer::match_number, planar_object_recognizer::matches, image_object_point_match::object_point, object_keypoint::scale, keypoint::scale, keypoint::u, and keypoint::v.
Referenced by geom_calib_idle(), geometric_calibration(), main(), photo_idle(), and photometric_calibration().
bool add_detected_homography | ( | planar_object_recognizer & | detector, |
CamAugmentation & | a | ||
) |
Definition at line 381 of file fullcalib.cpp.
References CamAugmentation::AddHomography(), PyrImage::convCoordf(), planar_object_recognizer::H, image_object_point_match::image_point, image_object_point_match::inlier, object_keypoint::M, planar_object_recognizer::match_number, planar_object_recognizer::matches, image_object_point_match::object_point, object_keypoint::scale, keypoint::scale, keypoint::u, and keypoint::v.
|
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().
Referenced by photometric_calibration().
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().
Referenced by main().
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(), LightCollector::averageImage(), LightCollector::avgChannels, CamAugmentation::Clear(), LightMap::computeLightParams(), planar_object_recognizer::detect(), CalibModel::detector, LightCollector::drawGrid(), LightMap::getBias(), LightMap::getGain(), IplTexture::getIm(), CamAugmentation::GetObjectToWorld(), planar_object_recognizer::H, LightMap::isReady(), LightMap::load(), CalibModel::map, LightMap::map, planar_object_recognizer::object_is_detected, LightMap::reflc, and LightMap::save().
Referenced by main().
void show_result | ( | planar_object_recognizer & | recognizer, |
IplImage * | video, | ||
IplImage * | dst | ||
) |
Definition at line 287 of file fullcalib.cpp.
References PyrImage::convCoordf(), cvPoint(), image_object_point_match::image_point, image_object_point_match::inlier, planar_object_recognizer::match_number, planar_object_recognizer::matches, planar_object_recognizer::object_is_detected, keypoint::scale, keypoint::u, and keypoint::v.
Referenced by geometric_calibration(), and main().
void usage | ( | const char * | s | ) |
Definition at line 29 of file fullcalib.cpp.