Removing Image Noise
Gray-level images for foreground/background are often afflicted by fine noise when they are thresholded.
I've used a few different approaches to dealing with this:
- blurring before thresholding
- median filtering before thresholding
- morphological filtering after thresholding
- distance transform after thresholding, followed by thresholding again as a more continuous morphological filtering algorithm
Unfortunately, these all have the same problem: inner corners are rounded. These algorithms can't tell the difference between a black pixel in an inner corner and a black pixel that is just noise.
Perhaps what we should really be using is something like bilateral filtering (in Photoshop, "Surface Blur"). Bilateral filtering preserves sharp edges, while blurring large undefined regions. Unfortunately, bilateral filtering creates a sort of "glow" that still has issues with corners.
Maybe we need something more like "smart blur"? It seems to not propagate across edges...
No comments:
Post a Comment