Page 1 of 1

Wand -connected components?

Posted: 2017-07-31T11:05:14-07:00
by palodylan
Hi,

I have previously been using the -connect components element of ImageMagick simply by calling magick in the command prompt. I'm using it to identify ~400 dots. Usually there are a few error objects (not the dots), I have to weed these out manually, and then I sort them manually based on the relative position of the dots. This has become rather tedious so I'm trying to make this all automated by using Wand in python.

I have been looking on their website for an analogous way to detect objects in an image without any luck. Could anyone provide any guidance as to a possible way to identify the centroid of objects using Wand?

Thanks!

Re: Wand -connected components?

Posted: 2017-07-31T14:38:55-07:00
by fmw42
I do not know if Python Wand has included -connected-components processing. But OpenCV has a similar functionality that you can call via Python. Or you can use subprocess in Python to make a call to ImageMagick or a bash shell script that calls imagemagick. Or use PythonMagick to do the connected components, provided it has been upgrade to include connected components.