Page 1 of 1

Filling Closed Curve

Posted: 2014-09-15T22:54:06-07:00
by foruforewer
Hi,

I have thousands of closed curve images which need to be filled with black color. I want to perform this with dos batch scripting.
Can anyone here please guide for same?

Sample (yes i know not required) is attached here for ready reference.

Image

To

Image

Re: Filling Closed Curve

Posted: 2014-09-15T23:35:49-07:00
by foruforewer
Sorry,

I got my answer

Code: Select all

convert TEST.JPG -fill black -fuzz 15% -draw "color 200,200 floodfill" NEW.PNG

Re: Filling Closed Curve

Posted: 2015-01-22T12:40:53-07:00
by jxramos
I have a similar problem too where I need to fill in closed boundaries / contours present in an image but in locations NOT known in advance so the trouble with my problem is that I cannot specify the point xy coordinates. Perhaps there's a way to derive them? The trouble is that there may be multiple contours so I need a means to distinguish each individually.

Re: Filling Closed Curve

Posted: 2015-01-22T12:52:32-07:00
by fmw42
jxramos wrote:I have a similar problem too where I need to fill in closed boundaries / contours present in an image but in locations NOT known in advance so the trouble with my problem is that I cannot specify the point xy coordinates. Perhaps there's a way to derive them? The trouble is that there may be multiple contours so I need a means to distinguish each individually.

I do not know if we can help. But you really need to provide examples of input and output and always provide your version of IM and platform.

Please review the very first topic at the top of the Users forum (viewtopic.php?f=1&t=9620)