Il Codice di esempio OpenCV effettivamente utilizza questo codice per recuperare e visualizzare la mappa della profondità:
Mat depth;
capture.retrieve( depth, CV_CAP_OPENNI_DEPTH_MAP )
const float scaleFactor = 0.05f;
Mat show;
depth.convertTo( show, CV_8UC1, scaleFactor );
imshow( "depth map", show );