First of all, I think your question is too general, it will depend on what libraries/drivers you use... For instance, if you use openni then you pass the information one way and if you use the kinect sdk you will have to use another method...
2) yes you can access the RGB images independently of the depth information and process it...
3) to combine the two, I suppose you meant depth and rgb. This is also dependent on the libraries you use and the drivers. Also the way you want to store it, e.g. point clouds, image, etc.
My suggestion is to define exactly what you want to achieve, with which libraries and in which operating system, and edit your question.
I created a tool using openni2, opencv and Qt, I have only tested with primesense cameras and structure.io cameras in linux, but you may get an idea of what to do exactly. This tool can do some basic thresholding and saving the data in different formats (pcd, images, oni). Link
I also used almost the same approach with openni1 and Avin's driver and a Kinect1 camera, on wednesday I can upload the code and you can take a look, but basically is the same, only the initialization changes a little bit.
As a basic checklist of things you should do when working with RGB-D images:
- Initialize the camera streams
- Create a matrix in opencv and copy the data directly to it, be sure to read the standard of the library, for example, openni uses RGB arrays for color matrix, while KinectSDK uses RGBA (at least kinect SDK 2.0). Also make sure that the depth matrix is 16 bits.
- To display the depth matrix you must normalize it and change it to a greyscale matrix.
- You may do any manipulation to the images and then save them in the desire format.
- Check the link I gave you to see how to save it in the most common formats.
Also you may take a look at the Point Cloud Library, they have a nice wrapper that will do the job and then it is easy to turn it into a pointcloud.
I hope this information helps you.
UPDATE:
For a Kinect 1 in windows, it is possible to install the latest Kinect SDK and use openni2 without installing additional drivers.
- just install Kinect SDK 1.8 (not the 2.0)
- Install Openni2
- run NiViewer.exe to test it works (it is in the openni folder)
If everything is good up to here, then you only need to:
- Initialize openni
- Initialize color and depth stream
- do a main loop where you will copy it to a OpenCV mat (you may use my code to see an example of what I mean)
- do any process you want to the rgb image
- create a point cloud for 3D display/manipulation, for this I recommend Point Cloud Library, since it is easy to create a point cloud and they have already a display for it.
I can give you code snippets if you are in doubt in any of the steps, just ask a new question about it and I will answer it.
I hope this helps you