RegistrationVis: don't assert if descriptorsFrom is 0, only if kptsFrom and descriptorsFrom are non null and not equal

This commit is contained in:
matlabbe
2016-08-12 10:59:43 -04:00
parent 5557701f44
commit a0d76eabe5

View File

@@ -608,7 +608,7 @@ Transform RegistrationVis::computeTransformationImpl(
kptsTo3D = uValues(toSignature.getWords3());
}
UASSERT(kptsFrom.empty() || int(kptsFrom.size()) == descriptorsFrom.rows);
UASSERT(kptsFrom.empty() || descriptorsFrom.rows == 0 || int(kptsFrom.size()) == descriptorsFrom.rows);
fromSignature.sensorData().setFeatures(kptsFrom, descriptorsFrom);
toSignature.sensorData().setFeatures(kptsTo, descriptorsTo);