Skip to content

HashTSDF fixes backported #3137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/rgbd/src/hash_tsdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,11 +796,11 @@ void HashTSDFVolumeCPU::fetchPointsNormals(OutputArray _points, OutputArray _nor
if (voxel.tsdf != -128 && voxel.weight != 0)
{
Point3f point = base_point + volume.voxelCoordToVolume(voxelIdx);
localPoints.push_back(toPtype(point));
localPoints.push_back(toPtype(this->pose * point));
if (needNormals)
{
Point3f normal = volume.getNormalVoxel(point);
localNormals.push_back(toPtype(normal));
localNormals.push_back(toPtype(this->pose.rotation() * normal));
}
}
}
Expand Down Expand Up @@ -1685,11 +1685,11 @@ void HashTSDFVolumeGPU::fetchPointsNormals(OutputArray _points, OutputArray _nor
{
Point3f point = base_point + volume.voxelCoordToVolume(voxelIdx);

localPoints.push_back(toPtype(point));
localPoints.push_back(toPtype(this->pose * point));
if (needNormals)
{
Point3f normal = volume.getNormalVoxel(point);
localNormals.push_back(toPtype(normal));
localNormals.push_back(toPtype(this->pose.rotation() * normal));
}
}
}
Expand Down