Custom Polygon creating from image?

Is there any available code or documentation that people can give about this topic? I want to create a pixel-fine polygon from an image. I just want the outline of the image to be transformed into a polygon (The background is transparent BTW).
If not are there any programs available that look like this-
Image
I'm willing to develop an application that can do this so any feedback/help is appreciated.
I have noticed some editors discussed on the cocos2d forums here: http://www.cocos2d-iphone.org/forum/forum/16
I'm not totally sure, but I seem to recall one of them can do what you want... check it out anyway.

Also this one, I think you need to place the vertices manually, but it handles non-convex polygons: viewtopic.php?f=6&t=7457

Original thread: https://box2d.org/forum/viewtopic.php?t=7487