No Support for Xtion Pro Live QVGA Mode (Patch #1753)
Description
Currently, highgui.cpp hardcodes an enum for openNI:
CV_CAP_OPENNI_VGA_30HZ = 0,
CV_CAP_OPENNI_SXGA_15HZ = 1,
CV_CAP_OPENNI_SXGA_30HZ = 2
The ASUS Xtion Pro Live supports QVGA, and on top of that, at 60Hz. I think this is a useful feature that should be considered, such that it looks like:
CV_CAP_OPENNI_VGA_30HZ = 0,
CV_CAP_OPENNI_SXGA_15HZ = 1,
CV_CAP_OPENNI_SXGA_30HZ = 2,
CV_CAP_OPENNI_QVGA_30HZ = 3,
CV_CAP_OPENNI_QVGA_60HZ = 4,
And we could call it. If the device does not support these options (like the Kinect), it raises the CV error.
This also applied to the depth generator. I have an ASUS Xtion, and I would be more than happy to test changes if this is implemented. Thanks!
Associated revisions
added Asus Xtion QVGA modes to the OpenNI backend (patch #1753)
Merge pull request #1753 from abidrahmank:py_tutorials
History
Updated by Kirill Kornyakov almost 13 years ago
Don't you want to provide a patch? It would simplify things a lot. Otherwise it might take too much time even for such a simple feature...
- Tracker changed from Bug to Feature
- Target version deleted (
2.4.0) - Category set to highgui-images
Updated by David Schwarz almost 13 years ago
Silly me. I guess I didn't feel that comfortable delving into the code at the time. I'm more familiar with it, so here's the patch. I tested it with my Xtion, everything works. I also updated the OpenNI sample.
- File cap_openni.cpp.patch added
- File highgui_c.h.patch added
- File openni_capture.cpp.patch added
Updated by Alexander Shishkov almost 13 years ago
- Assignee set to Alexander Shishkov
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-camera
Updated by Andrey Kamaev over 12 years ago
- Tracker changed from Feature to Patch
Updated by Vadim Pisarevsky over 12 years ago
- Target version deleted ()
- Assignee deleted (
Alexander Shishkov)
Updated by Vadim Pisarevsky over 12 years ago
thanks! your patches have been applied in a09c88ab
- Status changed from Open to Done
- Assignee set to Vadim Pisarevsky
Updated by Andrey Kamaev about 12 years ago
- Target version set to 2.4.3