为什么LOG过滤器会返回黑色背景图像?

M.Z*_*man 8 matlab image-processing

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

z=imfilter(I,fspecial('log',11,1.5)); 
figure
imshow(z);
Run Code Online (Sandbox Code Playgroud)

图片:

在此输入图像描述

M.Z*_*man 4

将图像转换为双精度(双精度)将解决该问题,因为 imread 命令采用默认的unit8(无符号整数)格式获取图像。