GIMP Script-fu

sg-mean-fill
Login

sg-mean-fill

Command:
Mean Fill
Menu:
"<Image>/Filters/Misc/Mean Fill"
PDB Name:
script-fu-sg-mean-fill
Download:
sg-mean-fill.scm (after the page appears, click on the "Download" command)
License:
GPLv2+

Description:

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)

Broken Link

then the result of running the script will be

Broken Link

which would appear in the final rendering as

Broken Link