mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +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);
|
depthOrRightImage = util3d::decimate(depthOrRightImage, _imageDecimation);
|
||||||
cx/=float(_imageDecimation);
|
cx/=float(_imageDecimation);
|
||||||
cy/=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);
|
fyOrBaseline/=float(_imageDecimation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user