Wand -connected components?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
palodylan
Posts: 3
Joined: 2017-07-19T09:51:35-07:00
Authentication code: 1151
Contact:

Wand -connected components?

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Contact:

Re: Wand -connected components?

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests