mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Fixed #1483.
This commit is contained in:
@@ -612,6 +612,13 @@ void Optimizer::computeBACorrespondences(
|
||||
sFrom.setWordsDescriptors(cv::Mat());
|
||||
sTo.setWordsDescriptors(cv::Mat());
|
||||
}
|
||||
else if(sFrom.getWordsDescriptors().empty() && sTo.getWordsDescriptors().empty())
|
||||
{
|
||||
UWARN("Rematching features is enabled but signatures (%d and %d) don't have word descriptors!? "
|
||||
"Features won't be rematched. If it is an old database, do rtabmap-reprocess "
|
||||
"so that signatures contain word desriptors.",
|
||||
sFrom.id(), sTo.id());
|
||||
}
|
||||
|
||||
RegistrationInfo info;
|
||||
Transform t = reg.computeTransformationMod(sFrom, sTo, Transform(), &info);
|
||||
|
||||
@@ -372,7 +372,7 @@ Transform RegistrationVis::computeTransformationImpl(
|
||||
(_estimationType==1 || toSignature.getWords3().size())) // required only for 3D->3D and 2D->2D
|
||||
{
|
||||
// no need to extract new features, we have all the data we need
|
||||
UDEBUG("Bypassing feature matching as descriptors and images are empty. We assume features are already matched.");
|
||||
UDEBUG("Bypassing feature matching as descriptors are empty. We assume features are already matched.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user