My own filter that I had pushed into gmic-community gives me this:
If I can figure out how to extract those pesky out of place pixels as a single channel mask, I believe this can be solved.
Also, my filter works for images with larger blur too.
EDIT: Getting there.
Now, I have to do indexing in-place via math parser. That’s not the fun part.
#@cli rep_color_region: _threshold[%]>0
#@cli : For use in images with large color blobs, this simplifies a image.
Last thing to add is a eval which do inplace indexing with surrounding pixel that are not part of the mask as color reference using the 1d strip image.
Also, allow it to utilize 3 dimensions, but I’ll do that much later.
That being said, even when all of this is done, some human intervention would have to be used. Not a big deal though.