GIMP Script-fu

Artifact Content

Artifact 4780d4504f7decaefec432fc11ba617ff226d309:

Wiki page [sg-mean-fill] by saulgoode 2014-10-17 14:49:54.
D 2014-10-17T14:49:54.673
L sg-mean-fill
P c6c2823792ac6febd7a6d75e7f0fade2c66c4a09
U saulgoode
W 1229
<dt><b>Command:</b> <dd>Mean Fill</dd></dt>
<dt><b>Menu:</b> <dd>"<Image>/Filters/Misc/Mean Fill"</dd></dt>
<dt><b>PDB Name:</b> <dd>script-fu-sg-mean-fill</dd></dt>
<dt><b>Download:</b> <dd>[|sg-mean-fill.scm] (after the page appears, click on the "Download" command)</dd></dt>
<dt><b>License:</b> <dd>[copyright|GPLv2+]</dd></dt>

<dt><b>Description:</b> <dd>
This script creates a new layer on which contiguous regions of the selection are filled with the mean (average) color of that region.

For example, if the image has the following selection mask (indicated by the black & white hashed circles)

<center><img src="" alt="Broken Link"></center>

then the result of running the script will be 

<center><img src="" alt="Broken Link"></center>

which would appear in the final rendering as 

<center><img src="" alt="Broken Link"></center>

Z cc4ee0fcfe3e193cb5fe50ce288679d6