With Mem/RotateImagesUpsideUp=true, do not clear features if none of the cameras are rotated. DBViewer: show local transform of all cameras in tooltip

This commit is contained in:
matlabbe
2024-08-12 14:27:08 -07:00
parent cc5da376ec
commit 4911dbe9bb
4 changed files with 11 additions and 5 deletions
+4 -2
View File
@@ -2279,7 +2279,7 @@ std::vector<int> SSC(
return ResultVec;
}
void rotateImagesUpsideUpIfNecessary(
bool rotateImagesUpsideUpIfNecessary(
CameraModel & model,
cv::Mat & rgb,
cv::Mat & depth)
@@ -2293,7 +2293,7 @@ void rotateImagesUpsideUpIfNecessary(
{
// Return original because of ambiguity for what would be considered up...
UDEBUG("Ignoring image rotation as pitch(%f)>Pi/4", pitch);
return;
return false;
}
if(roll<0)
{
@@ -2368,7 +2368,9 @@ void rotateImagesUpsideUpIfNecessary(
else
{
UDEBUG("ROTATION_0 (roll=%f)", roll);
return false;
}
return true;
}
}