Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
How to convert images to vectors ?

Any idea?

I don't even know why I'm bothering...but what do you mean convert images to vectors? Do you just want to get the matrix representation of the image data or do you want to convert a bitmap graphic into a vector graphic?
 
Use one of the well known algorithm (look them up) to detect the edges in the image
Threshold this to get rid of noise.
Use another well known algorithm to thin the lines
Calculate start and end points to turn the lines into Vectors
Average the colours within the lines to get fills
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.