forked from bartvdbraak/blender
Libmv: Avoid use of LOG(INFO) in solver
Usage of LOG(INFO) actually went against own guidelines in the logging.h: the INFO is for messages which are to be printed regardless of debug/verbosity settings.
This commit is contained in:
parent
61b3870981
commit
ea95ea644a
@ -758,7 +758,7 @@ bool EuclideanResectionPPnP(const Mat2X &x_camera,
|
||||
Z = Zmindiag.asDiagonal();
|
||||
E = Y - Z*PR;
|
||||
error = (E - E_old).norm();
|
||||
LOG(INFO) << "PPnP error(" << (iteration++) << "): " << error;
|
||||
LG << "PPnP error(" << (iteration++) << "): " << error;
|
||||
E_old = E;
|
||||
}
|
||||
*t = -*R*c;
|
||||
|
@ -352,7 +352,7 @@ struct ReprojectionErrorInvertIntrinsics {
|
||||
// Print a message to the log which camera intrinsics are gonna to be optimized.
|
||||
void BundleIntrinsicsLogMessage(const int bundle_intrinsics) {
|
||||
if (bundle_intrinsics == BUNDLE_NO_INTRINSICS) {
|
||||
LOG(INFO) << "Bundling only camera positions.";
|
||||
LG << "Bundling only camera positions.";
|
||||
} else {
|
||||
std::string bundling_message = "";
|
||||
|
||||
@ -373,7 +373,7 @@ void BundleIntrinsicsLogMessage(const int bundle_intrinsics) {
|
||||
APPEND_BUNDLING_INTRINSICS("p1", BUNDLE_TANGENTIAL_P1);
|
||||
APPEND_BUNDLING_INTRINSICS("p2", BUNDLE_TANGENTIAL_P2);
|
||||
|
||||
LOG(INFO) << "Bundling " << bundling_message << ".";
|
||||
LG << "Bundling " << bundling_message << ".";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user