Is it possible to refine or blur just the edges in an image with the white background ? I was thinking to get an edge mask of the image ( i already got it). After that use that mask to apply blur or smoothing function on the original image. So that only the edges will be blurred or refined. But i don't know how to achieve this.
Thanks
If you have an edge mask of the image, do that:
- Dilate(edgemask)
- Copy(source: original, destination: blurred)
- Smooth(blurred)
- Copy(source: blurred, destination: original, mask: edgemask)
And your "original" image will be blurred.
来源:https://stackoverflow.com/questions/17161088/how-to-refine-or-blur-or-smooth-just-the-edges