在Matlab中平滑图像 [英] smoothing image in Matlab

查看:166
本文介绍了在Matlab中平滑图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要执行图像平滑。我在网上搜索过但我没有找到任何东西 - 我尝试过的每一件事都没有像我想要的那样。

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?

谢谢....

推荐答案

如果输出图像的分辨率更高比楼梯的分辨率,你可以做任何数量的事情。仅举几例。

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. 灰度(或二进制)形态处理使用 imclose

  2. edge - 增强平滑效果

  3. 围绕物体边缘行进,确定蒙版中的角点,并使图像局部凸出,但这需要一些编码。

Matlab文件交换是你的朋友。

如果输出图像的分辨率与楼梯相同,并且输出是灰度的,那么你几乎受限于空间抗锯齿滤镜。

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.

这篇关于在Matlab中平滑图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆