forked from bartvdbraak/blender
libmv: fix matrix address being printed instead of actual values
This commit is contained in:
parent
0959482acb
commit
724b015da2
14
extern/libmv/libmv/multiview/fundamental.cc
vendored
14
extern/libmv/libmv/multiview/fundamental.cc
vendored
@ -446,14 +446,16 @@ class FundamentalSymmetricEpipolarCostFunctor {
|
||||
};
|
||||
|
||||
/* Fundamental transformation estimation. */
|
||||
bool FundamentalFromCorrespondencesEuc(const Mat &x1,
|
||||
const Mat &x2,
|
||||
const FundamentalEstimationOptions &options,
|
||||
Mat3 *F) {
|
||||
bool FundamentalFromCorrespondencesEuc(
|
||||
const Mat &x1,
|
||||
const Mat &x2,
|
||||
const FundamentalEstimationOptions &options,
|
||||
Mat3 *F) {
|
||||
// Step 1: Algebraic fundamental estimation.
|
||||
bool algebraic_success = NormalizedEightPointSolver(x1, x2, F);
|
||||
|
||||
LG << "Algebraic result " << algebraic_success << ", estimated matrix " << F;
|
||||
LG << "Algebraic result " << algebraic_success
|
||||
<< ", estimated matrix:\n" << *F;
|
||||
|
||||
if (!algebraic_success && !options.use_refine_if_algebraic_fails) {
|
||||
return false;
|
||||
@ -490,7 +492,7 @@ bool FundamentalFromCorrespondencesEuc(const Mat &x1,
|
||||
|
||||
VLOG(1) << "Summary:\n" << summary.FullReport();
|
||||
|
||||
LG << "Final refined matrix: " << F;
|
||||
LG << "Final refined matrix:\n" << *F;
|
||||
|
||||
return !(summary.termination_type == ceres::DID_NOT_RUN ||
|
||||
summary.termination_type == ceres::NUMERICAL_FAILURE);
|
||||
|
9
extern/libmv/libmv/multiview/fundamental.h
vendored
9
extern/libmv/libmv/multiview/fundamental.h
vendored
@ -175,10 +175,11 @@ struct FundamentalEstimationOptions {
|
||||
* correspondences by doing algebraic estimation first followed with result
|
||||
* refinement.
|
||||
*/
|
||||
bool FundamentalFromCorrespondencesEuc(const Mat &x1,
|
||||
const Mat &x2,
|
||||
const FundamentalEstimationOptions &options,
|
||||
Mat3 *F);
|
||||
bool FundamentalFromCorrespondencesEuc(
|
||||
const Mat &x1,
|
||||
const Mat &x2,
|
||||
const FundamentalEstimationOptions &options,
|
||||
Mat3 *F);
|
||||
|
||||
} // namespace libmv
|
||||
|
||||
|
5
extern/libmv/libmv/multiview/homography.cc
vendored
5
extern/libmv/libmv/multiview/homography.cc
vendored
@ -220,7 +220,8 @@ bool Homography2DFromCorrespondencesEuc(
|
||||
Homography2DFromCorrespondencesLinear(x1, x2, H,
|
||||
options.expected_algebraic_precision);
|
||||
|
||||
LG << "Algebraic result " << algebraic_success << ", estimated matrix " << H;
|
||||
LG << "Algebraic result " << algebraic_success
|
||||
<< ", estimated matrix:\n" << *H;
|
||||
|
||||
if (!algebraic_success && !options.use_refine_if_algebraic_fails) {
|
||||
return false;
|
||||
@ -257,7 +258,7 @@ bool Homography2DFromCorrespondencesEuc(
|
||||
|
||||
VLOG(1) << "Summary:\n" << summary.FullReport();
|
||||
|
||||
LG << "Final refined matrix: " << H;
|
||||
LG << "Final refined matrix:\n" << *H;
|
||||
|
||||
return !(summary.termination_type == ceres::DID_NOT_RUN ||
|
||||
summary.termination_type == ceres::NUMERICAL_FAILURE);
|
||||
|
Loading…
Reference in New Issue
Block a user