Skip to content

Change datatype of ZPD to fload/double#100

Open
devymex wants to merge 2 commits intostructureio:developfrom
devymex:develop
Open

Change datatype of ZPD to fload/double#100
devymex wants to merge 2 commits intostructureio:developfrom
devymex:develop

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