Gating negative octave scaling on decimation

This commit is contained in:
matlabbe
2026-09-19 17:07:47 -07:00
parent 4a8147b940
commit f1347db4f2
4 changed files with 52 additions and 4 deletions
+1 -1
View File
@@ -700,7 +700,7 @@ void SensorCaptureThread::postUpdate(SensorData * dataPtr, SensorCaptureInfo * i
kpts[i].pt.x /= _imageDecimation;
kpts[i].pt.y /= _imageDecimation;
kpts[i].size /= _imageDecimation;
kpts[i].octave -= log2value;
kpts[i].octave = std::max(0, int(kpts[i].octave - log2value));
}
data.setFeatures(kpts, data.keypoints3D(), data.descriptors());
}