Skip to content

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