The image is mostly gray, with a number of green (78,211,51) pixels, and a 1 pixel gray border. Windows 7 command:
Code: Select all
"%IMG681%convert" ^
stackOv.png ^
-fill rgb(1,2,3) ^
-bordercolor "rgb(78,211,51)" ^
-draw "color 0,0 filltoborder" ^
x.png
Code: Select all
convert.exe: Segment stack overflow `stackOv.png' @ error/paint.c/FloodfillPaintImage/295.
Code: Select all
"%IMG681%convert" ^
stackOv.png ^
-fill rgb(1,2,3) ^
-floodfill 0x0 rgb(78,211,51) ^
y.png
I am using this to identify grey pixels that are entirely surrounded by green pixels, as part of a chain for image segmentation and simplification. It generally works fine, but not on this image.