This is a continuation of the previous post about Adjusting image pixels internally in Blender with bpy
firefly removalIn optimal lighting conditions fireflies don't really occur often in cycles, I can't remember seeing any lately. here's a script that first creates a simulation of fireflies then removes them. results in this:
TBCAs you can see it's probably an ok simulation, looking at it tells me something about a potential algorithm.
- collect all whites
- sample colour from the surrounding non white pixels