title: How to implement the magic wand function in Python
body: <p>I have a image region labelling programme which was coded with python and library of PyQt4, I want to implement the magic wand function like photoshop and GMIP to selection a region referring a object and then to label the region. Could you tell me how to implement that or Are there some libray which can be used to deal with the issue.</p>