Renesas / opencv-lib

Dependents:   RZ_A2M_Mbed_samples

Embed: (wiki syntax)

« Back to documentation index

Autocalibration

Autocalibration
[Images stitching]

Functions

void CV_EXPORTS focalsFromHomography (const Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok)
 Tries to estimate focal lengths from the given homography under the assumption that the camera undergoes rotations around its centre only.
void CV_EXPORTS estimateFocal (const std::vector< ImageFeatures > &features, const std::vector< MatchesInfo > &pairwise_matches, std::vector< double > &focals)
 Estimates focal lengths for each given camera.

Function Documentation

void CV_EXPORTS cv::detail::estimateFocal ( const std::vector< ImageFeatures > &  features,
const std::vector< MatchesInfo > &  pairwise_matches,
std::vector< double > &  focals 
)

Estimates focal lengths for each given camera.

Parameters:
featuresFeatures of images.
pairwise_matchesMatches between all image pairs.
focalsEstimated focal lengths for each camera.
void CV_EXPORTS cv::detail::focalsFromHomography ( const Mat &  H,
double &  f0,
double &  f1,
bool &  f0_ok,
bool &  f1_ok 
)

Tries to estimate focal lengths from the given homography under the assumption that the camera undergoes rotations around its centre only.

Parameters:
HHomography.
f0Estimated focal length along X axis.
f1Estimated focal length along Y axis.
f0_okTrue, if f0 was estimated successfully, false otherwise.
f1_okTrue, if f1 was estimated successfully, false otherwise.

See "Construction of Panoramic Image Mosaics with Global and Local Alignment" by Heung-Yeung Shum and Richard Szeliski.