Mad KinectMasker Emulation

bAjA's picture

I was hoping to use the mad kinect masker, but its being qlitchy.

Anybody point me in the right direction to create a qc patch to emulate it, either using the v002 or kineme plugins.

The function i'm after is the ability to create a mask layer based on a max & min Z depth from the camera.

cheers_ bAjA

franz's picture
Re: Mad KinectMasker Emulation

happy new year. here's the MAD_KinectMasker QC patch. Enjoy.

PreviewAttachmentSize
MAD_KinectMasker 06a.qtz23.51 KB

destroythings's picture
Re: Mad KinectMasker Emulation

Thanks for this Franz.

Could not have asked for a better new year present!!

franz's picture
Re: Mad KinectMasker Emulation

You're welcome. And thxx for using MadMapper. If 're not, well, let's say that the 3 first KnM users who send me a mail will get a free MM license. Personal present from 1024 to the KnM QC community.

roennow's picture
Re: Mad KinectMasker Emulation

damn. Can't find your email :/ would have loved to get it.

Use your QC plugins all the time to accomplish all sorts of things. You guys rock!

happy new year // roennow

franz's picture
Re: Mad KinectMasker Emulation

Done. 3 KnM users already sent me an email.

bAjA's picture
Re: Mad KinectMasker Emulation

How very cool is that - what more could i want,than the patch itself and to have started a thread where madMapper was given away :-)

I just opened the patch- the mask side is still glitchy but i can now have a go at fixing it.

Many thanks Franz - You Rock, MadMapper Rocks and the 1024 plugins Rock..

Keep on Rocking in 2013

bAjA's picture
Re: Mad KinectMasker Emulation

A little inspection revealed the glitch to be:

the output of the threshold filter was flickering between the camera depth image and the camera color image!

I managed to cure this by wrapping the v002 kinect patch in the render in image.

vade's picture
Re: Mad KinectMasker Emulation

Try a build from our git repo: github.com/v002/v002-Open-Kinect

bAjA's picture
Re: Mad KinectMasker Emulation

Cheers Vade - but i still get the same glitch with the latest build...

vade's picture
Re: Mad KinectMasker Emulation

The latest build, that you built yourself, from the source code, from git?

bAjA's picture
Re: Mad KinectMasker Emulation

Yep I built from the repo - a little out of my comfort zone, but i managed it. It just took a while to work out where the new plugin was written :-)

blackburst's picture
Re: Mad KinectMasker Emulation

You're a good sport Franz!

vade's picture
Re: Mad KinectMasker Emulation

I cannot re-create this with the latest source in any configuration.

Can you please file a bug report somewhere appropriate like v002 or our github page?

a) send me the composition that is giving you the problem b) send me your system configuration?

bAjA's picture
Re: Mad KinectMasker Emulation

Whoops - I really was out of my depth, I must have had QC open when I built the plugin, so when I loaded the comp it still used the old build. Sorry. It all works fine now :-)

So now its all working I have a question...

The depthImage provides many shades of gray for objects in the first meter from the camera, but beyond that to the eye it all looks pretty white. How does the Rutt Etra patch manage to create such detailed 3d distortion even when the input depth image appears so washed out ? See attachments for example depth image and rutt output from that iamge.

The Kineme patch seams to provide more noticeable shades of gray for objects further from the camera. This works well when using Franz's masking patch, but the 3d Rutt Etra results where far blockier from this patch.

There is a short clip of some of what we played with today: https://www.facebook.com/v/4701597570641

PreviewAttachmentSize
RuutImage.png
RuutImage.png83.28 KB
depthImage.png
depthImage.png90.36 KB

vade's picture
Re: Mad KinectMasker Emulation

The v002 kinect outputs using 32bpc floating point colors, some values will be greater than 1 or less than 0. use the clip built into the rutt to mask z near z far.

kazimier's picture
Re: Mad KinectMasker Emulation

hi - just playing around with this qc patch and struggling to find a way to control the z near / z far .. I am relatively new to qc so not sure where to look. As far as i can see this is not a functionality in the Mad KinectMasker Emulation patch? Vade mentions something about using "the clip built into the rutt to mask z near z far" .. could someone explain this a bit further?

any help would be greatly appreciated