为什么LOG过滤器返回黑色背景图像? [英] Why LOG filter is returning the black background image?

查看:129
本文介绍了为什么LOG过滤器返回黑色背景图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过imfilter命令将图像与LOG过滤器相关联。

I had taken co-relation of image with LOG filter via imfilter command.

z=imfilter(I,fspecial('log',11,1.5)); 
figure
imshow(z);

图片:

推荐答案

将图像转换为double(双精度)将解决此问题,因为imread命令以默认的unit8(unsigned int)格式获取图像。

Converting the image to double (double precision) will resolve the issue because imread command took the image in default unit8 (unsigned int) format.

这篇关于为什么LOG过滤器返回黑色背景图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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