Area detected by Color Fill Primitives
Posted: 2010-01-21T09:15:59-07:00
Hi all
I'm using the following to fill the area surrounding a given pixel with a particular colour:
This works great, but I am now looking for a way to draw a filled polygon over the detected colour area, rather than simply flood-filling it. Is it possible to get the location of the points bounding the detected area to pass into -draw polygon?
Many thanks
Greg
I'm using the following to fill the area surrounding a given pixel with a particular colour:
Code: Select all
convert input.jpg -fill red -fuzz 10% -draw "color 10,10 floodfill" output.jpg
Many thanks
Greg