Skip to content

Fixed KinFu getCloud() at empty volume #2410

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
Jan 18, 2020

Conversation

savuor
Copy link
Contributor

@savuor savuor commented Jan 16, 2020

resolves #2404

This pullrequest changes

OCL version of TSDF's fetchPointsNormals() fixed for the case when there's no data in the volume

@savuor savuor self-assigned this Jan 16, 2020
@savuor
Copy link
Contributor Author

savuor commented Jan 16, 2020

👍


UMat atomicCtr(1, 1, CV_32S, Scalar(0));

if(kfill.empty())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kfill.empty()

Put check right after .create()call.

UMat creation between them looks strange.

throw std::runtime_error("Failed to create kernel: " + errorStr);

// mem size to keep pts (and normals optionally) for all work-items in a group
lsz = localSize[0]*localSize[1]*localSize[2]*elemSize;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to create new one "local" variable instead of reusing that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both fixed

@savuor savuor requested a review from alalek January 17, 2020 23:59
@alalek alalek merged commit c8b405e into opencv:master Jan 18, 2020
@savuor savuor deleted the fix/kinfu_fetch_checkzero branch January 19, 2020 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kinect Fusion crash when cover sensor
2 participants