Retrieve the coordinates corresponding to a certain color
Posted: 2011-11-04T05:05:13-07:00
Hello,
Is it possible to retrieve the coordinates x,y (and width,height) of a shape in an image with imagemagick ?
Let me explain :
There is a function in flash which recovers an area corresponding to a certain color (getColorBoundsRect) :
With this picture, the function will return the coordinates of the area filled with the red circle.
I would do the same with imagemagick but I do not know if this is possible.
Thank you
Is it possible to retrieve the coordinates x,y (and width,height) of a shape in an image with imagemagick ?
Let me explain :
There is a function in flash which recovers an area corresponding to a certain color (getColorBoundsRect) :
With this picture, the function will return the coordinates of the area filled with the red circle.
I would do the same with imagemagick but I do not know if this is possible.
Thank you