fill a selection according to neighboring gradient area
...Note, since this plug-in is written in python and involves optimization problems and non-filter operations, this script's runtime can be rather long, depending on the size of your image selection.
Consider donating to this project: https://sourceforge.net/projects/gimp-g-e/donate