access to the different-depth-maps and acess to ir-images

25 views
Skip to first unread message

nomad

unread,
Jan 12, 2011, 4:47:00 AM1/12/11
to OpenKinect
hi
with opencv and libfreenect:
depthMat.convertTo(depthf, CV_8UC1, 255.0/2048.0);
cv::imshow("Depth",depthf);
you can show a depth-image
now in the image are different grayscale-maps from objects (contours)
== different Distances of the object ??? it's true ???
now the questions:
1)
how can i have direct acess to the differenct-grayscale-maps???
and how can i separate these maps into different grayscale-contours
and save
this in a jpg image ???

2) its possible to have direct access to the IR-Images (in the rgb-
demo is
this possibleEisefdif )
thanks for help
steven

Kai Ritterbusch

unread,
Jan 12, 2011, 7:01:40 AM1/12/11
to openk...@googlegroups.com
the depth image is a 1 channel image whose pixel values correspond to
the depth of the object that is viewed by this pixel.

neither segmented objects nor any contours are provided by the kinect.
you have to do that yourself :)

nomad

unread,
Jan 12, 2011, 10:02:00 AM1/12/11
to OpenKinect
hi kay
thanks for your answer,
OK, in the moment i have access to my own grayscale image with
contours and shows the segmented objects in grayscale.
the problem is not the kinect, i'm looking under opencv for
seqmentation of grayscale objects, if this done, i have (i hope so) a
depth-object (body or hand)
then it should possible to create a skeleton of this object (depth ==
z directions) x,ypos are the middlepoint (contours) of this object ->
and create with opengl a 3d-object

about the IR-image ?? some plans ???
excuse my bad english
regards steven

Kai Ritterbusch

unread,
Jan 12, 2011, 10:12:36 AM1/12/11
to openk...@googlegroups.com
you can use cv::threshold to find pixels in the depth image at a given
depth. (for example, you look for objects in 2m to 2.5m distance)

you can access the IR image. try to press "f" in glview or cppview!

ash11tw

unread,
Jan 12, 2011, 10:36:12 AM1/12/11
to openk...@googlegroups.com
You need the calibration to make a 3D point cloud
check Nicolas's work. 
http://nicolas.burrus.name/index.php/Research/KinectRgbDemoV3

nomad

unread,
Jan 13, 2011, 3:35:01 AM1/13/11
to OpenKinect
hi kai,
thanks al lot, for your answer aka cv::threshold and ir.
later in this day i working on cv::threshold
thanks
regards steven

nomad

unread,
Jan 13, 2011, 3:50:22 AM1/13/11
to OpenKinect
hi
1) in the moment dont want 3d-point-clouds. :-)
2) on rgbDemoV3 i have some troubles with calibrate the kinect with a
chessboard.
later i am looking for that
thanks steven
Reply all
Reply to author
Forward
0 new messages