How does an unsharp mask work?

后端 未结 5 565
天命终不由人
天命终不由人 2021-01-30 15:29

I\'ve been playing around with image processing lately, and I\'d like to know how the unsharp mask algorithm works. I\'m looking at the source code for Gimp and it\'s implement

5条回答
  •  不知归路
    2021-01-30 15:59

    Unsharp Mask works by generating a blurred version of the image using a Gaussian blur filter, and then subtracting this from the original image (with some weighting value applied), i.e.

    blurred_image = blur(input_image)
    output_image = input_image - blurred_image * weight
    

提交回复
热议问题