Open Masterxilo opened 8 years ago
Screenshot with the fix:
(not sure if it should look this way, but the tracker also works with the fix)
Without the fix:
@victorprad @olafkaehler blame is on me, please fix :)
WICP can still work since we have a min weight threshold.
The method uses the focal length fx, fy in a wrong way to unproject points:
This is only valid when intrinparam.x and intrinparam.y have been inverted (so that they are 1/fx, 1/fy). But this does not happen anywhere in the calls to that function. As a result, the x_y.xy values are extremely large.
The fix is to compute
like AllocateSceneFromDepth does for example and then pass those.
Or we could correct the formula to:
Interestingly, the TRACKER_WICP still seems to work fine.