How to do Morphing : any addons, exemples or reference with OF?

Hi,
I would like to make a smooth transitions between 2 silhouettes/blob, with a “morphing” style


My pictures are in grayscale, with only one black silhouette on white background

Do you have an idea how I can achieve this with OF ?
thanks

3 Likes

Hi,

Not a perfect solution, but it can be a start:

Use openCV to get the contour points from two silhouettes (I did that once using ofxCvContourFinder).
Once you’ve got two polylines, one for each silhouette, you can realize the morphing animation by computing the animation path for each point of the contour with a simple interpolation formula.
I made a quick example for the interpolation method:
PolylineInterpolation.zip (2.2 KB)
Draw a first silhouette with the mouse, then another one, and press space to see the morphing animation. Take care to start your drawing at the same place for each silhouette (for example at the top of the head).

@lilive nice example!

For photographic morphs you might also want to try creating an ofMesh that is pinned to salient features (either manually or using a computer vision feature detector) between two objects (for a face morph it might be corners of mouths, pupils, etc) and then use a very similar technique to @lilive to move between two meshes cross fading the texture as you go.

Hi,

I challenged it, too.

and I was able to do it on oF 0.8.3. maybe…

[demo movie]
https://vine.co/v/MLdtVdPrdiQ

[FaceMorphing.zip]

http://fast-uploader.com/file/6964637027804/

thanks

2 Likes

wow great !
Working only with people faces, but very cool !

hi @selflash

any change of reposting your link to faceMorphing.zip
it looks like the perfect thing that i looking for -)

Best
Ben

I posted a article and uploaded the source.
However, it is Japanese.

1 Like