Thanks all of you for your clear answers. Cmake now shows that it does
configure OpenCV with OpenNI, as I can see in the cmakecache where the
directories for Xncore.dll files and the directory from prime sensor
is shown . But when I tried to capture video in OpenCv it doesn't seem
to work. For testing whether OpenCv is working properly I used one
sample c++ file kinect_maps.cpp from the following link
http://fossies.org/dox/OpenCV-2.3.1a/kinect__maps_8cpp.html
and I was told that if OpenCV is properly configured with
OpenNI it I should be able get image depth and other information. But
it only shows the following :
This program demonstrates usage of Kinect sensor.
The user gets some of the supported output images.
All supported output map types:
1.) Data given from depth generator
OPENNI_DEPTH_MAP - depth values in mm (CV_16UC1)
OPENNI_POINT_CLOUD_MAP - XYZ in meters (CV_32FC3)
OPENNI_DISPARITY_MAP - disparity in pixels (CV_8UC1)
OPENNI_DISPARITY_MAP_32F - disparity in pixels (CV_32FC1)
OPENNI_VALID_DEPTH_MASK - mask of valid pixels (not ocluded,
not shaded etc.) (CV_8UC1)
2.) Data given from RGB image generator
OPENNI_BGR_IMAGE - color image (CV_8UC3)
OPENNI_GRAY_IMAGE - gray image (CV_8UC1)
Kinect opening ...
done.
Can not open a capture object.
Press any key to continue . . .
This was supposed to show when video can't be captured from the
Kinect. My concern is if OpenCv was not properly configured with
OpenNI commands like "CV_CAP_OPENNI_DEPTH_GENERATOR_BASELINE"
shouldn't work, right?
OpenNI seems to working okay as the Demo applications like
SimpleViewer.net and UserTracker.net are working.
What can be the problem?
Thanks for the attention.