在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.
- 灰度(或二进制)形态处理使用
imclose
- edge - 增强平滑效果
- 围绕物体边缘行进,确定蒙版中的角点,并使图像局部凸出,但这需要一些编码。
如果输出图像的分辨率与楼梯相同,并且输出是灰度的,那么你几乎受限于空间抗锯齿滤镜。
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.