about a segmentation on kinect

101 views
Skip to first unread message

Hoyong Na

unread,
May 30, 2012, 6:32:37 AM5/30/12
to OpenNI
Hello~

I am a student. I and my team are proceeding a kind of project. In
that project, we want to make a virtual fitting room. Our porpose is
to make a user and his cloths on the 3D screen.

But before we make this, We have to get a segmentation of 2D model. We
want to get only our user's image on screen and we want to delete the
background. but It's so difficult.

So.. I wanna ask some question.. Could you give me some advice??? If
you can, please send us a simple source code..

Pedro Silva

unread,
May 30, 2012, 6:04:19 PM5/30/12
to openn...@googlegroups.com
You have an example on OpenNI examples to track user with user generator. It's also possible to do it with sceneAnalyzer.
You can get metadata from imageGenerator and map pixel values that are not black ( != 0 ) on depth metadata array.

Don't forget to setAlternativeCapViewport or something like this to calibrate depth sensor with rgb camera.

Pedro Silva
R&D Manager
+351 91 932 72 38
www.covii.pt
CoVii - Computer Vision Interaction
> --
> You received this message because you are subscribed to the Google Groups "OpenNI" group.
> To post to this group, send email to openn...@googlegroups.com.
> To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.
>

Tayyab

unread,
May 30, 2012, 6:14:17 PM5/30/12
to OpenNI
As Pedro said just go through the Openni sample program NiUSerTracker
and you will have a pretty good idea of how user segmentation works
and how you can simply remove the background. Openni gives option of
tracking 16 users and GetUserPixels function labels each pixel in the
depth map with user label id or 0 where 0 means background using this
info you can remove the background.

Tayyab
http://tayyabnaseer.blogspot.de/

Xavier Mendez

unread,
May 31, 2012, 8:27:38 AM5/31/12
to openn...@googlegroups.com
A user ID is a 16-bit unsigned integer.
So, OpenNI would allow tracking up to 2^16 (= 65536) users.
Don't you think so?

2012/5/31 Tayyab <tayyab...@gmail.com>

Rodrigo Ibañez

unread,
May 31, 2012, 8:50:51 AM5/31/12
to openn...@googlegroups.com
Hi Hoyong,
Take a look at this:


 
2012/5/31 Xavier Mendez <jmen...@gmail.com>
Reply all
Reply to author
Forward
0 new messages