2
votes

I need to perform image smoothing. I've searched the web but I didn't find anything - every thing I tried doesn't preform like I want.

for example: enter image description hereenter image description here

as you see there are bumps or something like stairs, so what should I do so the lines will be straight?

thanks....

1
You may want to take a look at SO: Image smoothingYetAnotherUser
You probably want to use morphological operators for this - try doing an erode followed by a dilate.Paul R
Google spacial anti-aliasing filterPhonon
A couple questions: Is your final output image resolution higher than the resolution of the stairs, or the same resolution? Is your output binary or grayscale? The answer to these questions changes the answer slightly. Spatial anti-aliasing filter is the answer (as Phonon said) if the answers are "same" then "grayscale"Chris A.

1 Answers

3
votes

If the resolution of the output image is higher than the resolution of the stairs, then you can do any number of things. To name a few.

  1. grayscale (or binary) morphological processing using imclose
  2. edge-enhancing smoothing
  3. march around the edges of your objects, determine the corners in your mask, and make the image locally convex, but this will take some coding.

The Matlab File Exchange is your friend.

If the resolution of the output image is the same as the stairs, and the output is grayscale, you're pretty much constrained to spatial anti-aliasing filters.

If the resolution of the output image is the same as the stairs, and the output is binary, you can't do anything, obviously.