Skip to content

Commit f329273

Browse files
committed
Bug fixes for HashTSDF integration
1 parent 48ee51e commit f329273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/rgbd/src/hash_tsdf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void HashTSDFVolumeCPU::integrate(InputArray _depth, float depthFactor, const Ma
7676
Depth depth = _depth.getMat();
7777

7878
//! Compute volumes to be allocated
79-
const int depthStride = 1;
79+
const int depthStride = log2(volumeUnitResolution);
8080
const float invDepthFactor = 1.f / depthFactor;
8181
const Intr::Reprojector reproj(intrinsics.makeReprojector());
8282
const Affine3f cam2vol(pose.inv() * Affine3f(cameraPose));
@@ -573,7 +573,7 @@ struct HashRaycastInvoker : ParallelLoopBody
573573
std::numeric_limits<int>::min());
574574

575575
float tprev = tcurr;
576-
TsdfType prevTsdf = volume.truncDist;
576+
float prevTsdf = volume.truncDist;
577577
Ptr<TSDFVolumeCPU> currVolumeUnit;
578578
while (tcurr < tmax)
579579
{

0 commit comments

Comments
 (0)