-
Notifications
You must be signed in to change notification settings - Fork 751
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
Depth limited to 4.5 meters? #143
Comments
You can change the limits by instantiating one of the packet pipeline implementations, call getDepthPacketProcessor and then call its setConfiguration method. Pass your packet pipeline object to the openDevice method |
Thanks for your quick reply.
Are these parameters really used? |
Which pipeline are you using? I'm not sure whether the opencl one respects the parameters @wiedemeyer ? |
Yes, I am using libfreenect2::OpenCLPacketPipeline |
Yes, it just uses the |
@mmunaro please close this issue if the fix works for you |
Yes, this fix works (if both MinDepth and MaxDepth are specified and if they are expressed in meters).
|
Sorry to raise this problem again. I pull the newest code, however when I set the config.MaxDepth to more than 4.5f, it shows "skipping depth packet", and no depth image shown. My code is as follow:
Any idea why this happen?? Thank you! Solution: |
Hello, |
I don't think so, otherwise the OpenCL program wouldn't be rebuilt at all and would still be running the old version with the old config. What I did was copy the last line in the method (impl_->config = config) inside the if body just before line 614. If you want I can submit a pull request with the fix, but it's so simple I don't think it's worth the effort. |
Proposed fix in #324. |
Hi,
with commit 5086872, I could get depth up to 10 meters, while now (I tried with commit 3c0cda4) depth seems to be limited to about 4.5 meters.
Any idea why this happens or how to remove this limit as it was before?
Thanks!
Best,
Matteo
The text was updated successfully, but these errors were encountered: