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

Change datatype of ZPD to fload/double #100

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Change datatype of ZPD to fload/double #100

wants to merge 2 commits into from

Conversation

devymex
Copy link

@devymex devymex commented Nov 17, 2016

The fixed parameter ZPD (XnFixedParams::fReferenceDistance) is stored in firmware as float type, see XnFixedParams in Source/Driver/PS1080/Sensor/XnDeviceSensor and function "XnHostProtocolGetFixedParams" in /Source/Driver/PS1080/Sensor/XnHostProtocol.cpp.

ZPD is used to convert disparity map to depth map, see line 66 of /Source/Driver/PS1080/DDK/XnShiftToDepth.cpp. You can find that this value is converted to double here for following computing.

Therefore, this value shouldn't be convert to int type during parameter passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant