Skip to content
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

Fix ROI mask always being invalid #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryanppeters
Copy link
Contributor

@ryanppeters ryanppeters commented May 30, 2024

Fixes Region of Interest mask always being invalid for the entire image when toggled.

Appears that since SDK v4.0, the Region of Interest matrix can no longer be populated with 1 to indicate that that pixel is valid. Per the API Reference, the value must now be >=127. To be safe, I've used 255.

With the current code, if roi=TRUE, the depth map will be all 0 (since the ROI matrix will be set as all invalid)

Fixes Region of Interest mask always being invalid for the entire
image when toggled.

In SDK v4.0, Region of Interest mask can no longer be populated with
'1' to indicate a valid pixel; must use '255'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant