How can I create an effect like this?

I was thinking a combination of Kinect + OpenFrameworks. I’m not sure if I need OpenNI or OpenCV, or some other CV framework. The application is to create a ghost like image of a human body.

Thanks,
Ben

1 Like

Are you interested in motion blur?

Or is it more of a distance transform (e.g. https://www.safaribooksonline.com/library/view/opencv-30-computer/9781783283972/ch04s07.html)

Distance transform is implemented in OpenCV.

I believe there are addons for motion blur … http://ofxaddons.com/categories

Thanks for the reply. I’m definitely interested in motion blur. I think what I’m getting at is emphasizing the motion of the body while masking any body features. Like in the example image I posted, you can’t see the skin / face / whatever.

What do you want to happen when dancers are not in motion?

Still bodies will look like a white/grey blob, with minimal blurring compared to the blobs in motion.

1 Like

I’m not familiar with graphics visualization so I’m struggling to describe what the reference image looks like. It looks to me like
grayscale
background is cut out
closer objects are bolder than more distant ones
the raw image isn’t completely blurred out, like I can still see ankle and toes

Is that fair?

To me, it looks like black and white long-exposure photography of dancers … e.g. https://www.google.com/search?q=long+exposure+dancer&safe=off&tbm=isch&tbo=u&source=univ

So, to create something similar, you might just try accumulating a running average of grayscale camera pixels.

You can create a running average of pixels manually doing the math with the camera’s ofPixels or you could use one of the built-in OpenCV functions (e.g. accumulate [see this]).

As a quick first try, I’d guess that you could also tweak the parameters of this ofxCv example to get a similar effect.

2 Likes

Thanks Bakercp, that looks like it!

1 Like