title: Programmatic equivalent of Gimp's Contiguous selection tool
body: <p>I need to automate the analyses of many similar images which are basic lots of small blackish blobs on a somewhat homogeneous brown  background.</p>
  
  <p>I have tried the find_blobs method from simpleCV but it is not accurate enough. However with gimps contiguous selection tool, also known as Magic wand, I was able to achieve much better results, in separating the background from my blobs.</p>
  
  <p>My problem is that I need to automate this process, so I can't have a person clicking on each image. Any suggestion of a Python friendly library in which I can find this functionality? Is using Gimp in batch mode the only way? </p>