mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
minor refactoring
This commit is contained in:
@@ -3401,13 +3401,9 @@ Signature * Memory::createSignature(const SensorData & data, Statistics * stats)
|
||||
depthOrRightImage = util3d::decimate(depthOrRightImage, _imageDecimation);
|
||||
cx/=float(_imageDecimation);
|
||||
cy/=float(_imageDecimation);
|
||||
if(data.baseline() != 0.0f)
|
||||
fx/=float(_imageDecimation);
|
||||
if(data.fy() != 0.0f)
|
||||
{
|
||||
fx/=float(_imageDecimation);
|
||||
}
|
||||
else
|
||||
{
|
||||
fx/=float(_imageDecimation);
|
||||
fyOrBaseline/=float(_imageDecimation);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user