Improved image view scene rect size when no images are there. Added warning when transform cannot be computed because some data are missing.

This commit is contained in:
matlabbe
2024-09-16 15:55:38 -07:00
parent 69ac21f811
commit 0e85bd849c
3 changed files with 30 additions and 2 deletions

View File

@@ -3186,6 +3186,15 @@ Transform Memory::computeTransform(
transform = transform.inverse();
}
}
else
{
std::string msg = uFormat("Missing visual features or missing raw data to compute them. Transform cannot be estimated.");
if(info)
{
info->rejectedMsg = msg;
}
UWARN(msg.c_str());
}
return transform;
}