Skip to content

Commit 49e8f12

Browse files
authored
Merge pull request #3137 from savuor:backport_levmarqfromscratch
HashTSDF fixes backported * HashTSDF fixes backported * typo fixed
1 parent 53365ce commit 49e8f12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/rgbd/src/hash_tsdf.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,11 +796,11 @@ void HashTSDFVolumeCPU::fetchPointsNormals(OutputArray _points, OutputArray _nor
796796
if (voxel.tsdf != -128 && voxel.weight != 0)
797797
{
798798
Point3f point = base_point + volume.voxelCoordToVolume(voxelIdx);
799-
localPoints.push_back(toPtype(point));
799+
localPoints.push_back(toPtype(this->pose * point));
800800
if (needNormals)
801801
{
802802
Point3f normal = volume.getNormalVoxel(point);
803-
localNormals.push_back(toPtype(normal));
803+
localNormals.push_back(toPtype(this->pose.rotation() * normal));
804804
}
805805
}
806806
}
@@ -1685,11 +1685,11 @@ void HashTSDFVolumeGPU::fetchPointsNormals(OutputArray _points, OutputArray _nor
16851685
{
16861686
Point3f point = base_point + volume.voxelCoordToVolume(voxelIdx);
16871687

1688-
localPoints.push_back(toPtype(point));
1688+
localPoints.push_back(toPtype(this->pose * point));
16891689
if (needNormals)
16901690
{
16911691
Point3f normal = volume.getNormalVoxel(point);
1692-
localNormals.push_back(toPtype(normal));
1692+
localNormals.push_back(toPtype(this->pose.rotation() * normal));
16931693
}
16941694
}
16951695
}

0 commit comments

Comments
 (0)