smoothing image in Matlab

微笑、不失礼 提交于 2019-12-24 01:46:16

问题


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:

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

thanks....


回答1:


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.



来源:https://stackoverflow.com/questions/6295974/smoothing-image-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!