GIMP Script-fu

Artifact [4780d4504f]
Login

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
<dl>
<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>[http://chiselapp.com/user/saulgoode/repository/script-fu/artifact?name=19d6dac9e00502483a4548b3ab3942864a1344cf|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="http://barn.kerosenecow.net/mgoblin_media/media_entries/40/SS-mean-select.jpg" alt="Broken Link"></center>

then the result of running the script will be 

<center><img src="http://barn.kerosenecow.net/mgoblin_media/media_entries/39/SS-mean-layers.jpg" alt="Broken Link"></center>

which would appear in the final rendering as 

<center><img src="http://barn.kerosenecow.net/mgoblin_media/media_entries/38/SS-mean-fill.jpg" alt="Broken Link"></center>
</dd></dt></dl>

Z cc4ee0fcfe3e193cb5fe50ce288679d6