I decided to publish the source code of my camshiftimplemenation via the spark project community. Many thanks to Yossy and all the team. Editing wiki pages with a japanese interface was a funny but also a bit stressing experience . So you can find the sources here. I called it FaceIt . I will try to improve it little by little, there is a lot of optimizations which could be done.
Surfing on Wikipedia, I found this article about image moments. To be honest at the beginning it just seemed to me to be some ugly maths . But believe me or not, when I read it in more details I discovered really interesting things .
Basically moments are often used in physic in order to describe mass repartition of a body. You can derive the “idea” in image processing in substituting mass by grey level of pixel. This can give really interesting information about pixels repartition into an image. Indeed, it’s possible to use them in order to find center, orientation and size of a shape into an image. To summary image moments is a way to find all my schema below parameters just with pixels information:
Let’s see how it works and how to implement it in Actionscript.
A few months ago, I tried to implement a simple class in AS 3.0 to do morphing between two images. I think it could be interesting and cool to share it and explain a bit how it works. You can see below a wonderful geek’s example to illustrate the final result :