Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The magic wand tool in Photoshop uses the active contours (or snakes) algorithm to follow the outline of an object. It was present in old OpenCV implementations, but it was removed as it wasn't very accurate. You can find the source code here, you can reuse it in your project.

Anyway, probably the GrabCut will give better results - even if technically it isn't the same algorithm.