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

dump_rgbd with Kinect: I became a smurf and disparity images have a strange resolution #16

Open
raphaelfavier opened this issue Dec 16, 2011 · 3 comments
Labels

Comments

@raphaelfavier
Copy link

This is considering a ScaViSLAM install with PCL support and no CUDA support:

running ./dump_rgbd produces strange RGBD pictures:

you can find some at: http://inky.ws/g/uv

  • From my new skin tone, It seems the red channel is missing.
  • The disparity pictures are saved with a resolution of 2560*480 pixels. Isn't that a bit too much?
  • If the kinect is moving a lot, pictures appear "broken" (see the last pair of pictures), but I guess this is a limit of the sensor itself
@strasdat
Copy link
Owner

  • There are two conventions to store RGB images. RGB and GBR.
    Here, Kinect provides GBR but RGB is displayed, thus red and blue color channels are switched.
    This is a bit annoying and needs to be fixed. But it is only a visualization issue, since the software does only rely on greyscale.
  • OpenCV does not support floating point images. My favorite hack is to reinterpret one float as four uint8.
    Thus, the width of the image is multiplied by four. (This "only" works on architectures where sizeof(float)==4. There is a corresponding assert.)
  • Not sure I understand...

@raphaelfavier
Copy link
Author

The last point is that some pictures taken with a fast-moving/shaking Kinect are missing some parts.

In the case of http://static.inky.ws/image/1046/image.jpg , I am missing my nose :)

But I guess this is a limitation of the sensor.

@strasdat
Copy link
Owner

Oh, that looks bad! Seems like that two different frames are overlayed.

Update: I think the issue is that I only copy the reference of the image. I fear a "clone" is necessary here to avoid this issue.
I'll try to fix it in the next couple of days!

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

No branches or pull requests

2 participants