Mosquito noise filtering
In one aspect, a method to reduce compression artefacts, includes generating a first set of weights based on pixel value differences, producing a soft binned histogram from values in a neighborhood of pixels, generating an adapted histogram from the soft binned histogram using interpolation, generating occurrence density weights from the adapted histogram, combining the first set of weights and the occurrence density weights, filtering pixel values a bilateral filter using the combined weights, mixing the filtered pixel values and original pixel values, and outputting the mix of filtered pixel values and original pixel values.