声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 5644|回复: 3

[编程技巧] The initial magnification of the image is set to 'fit' in a docked figure 出错

[复制链接]
发表于 2008-5-2 19:45 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我编凑了这么一个程序:
>>A=dicomread('g:\Transv01_DS0681.dcm'); %处理对象A是医学图片,dicom格式,
                                                                      2维数组,大小128*128
>>PSF=fspecial('gaussian',5,8); %成像系统的空间分辨率是5微米,
                                                 点扩展函数(PSF)近似选为高斯,
                                                 不知高斯的参数这样选是否合理?
                                                 成像系统空间分辨率与图像像素有什么关系?
>>INITPSF=ones(size(PSF));
>>WT=zeros(size(A));
>>WT(5:end-4,5:end-4) = 1; %WT的取法也心存疑虑,请问怎么取才合理?
>>[J P]=deconvblind(A,INITPSF,20,[],WT); %NUMIT随便取20,DAMPAR取默认,合理吗?
>>max(max(A))

ans =

    169

>>max(max(J))

ans =

    176

>>subplot(221),imshow(A,[0,169]),title('blurred image');
Warning: The initial magnification of the image is set to 'fit' in a docked figure.
> In imshow at 181
>>subplot(222),imshow(PSF,[]),title('PSF');
Warning: The initial magnification of the image is set to 'fit' in a docked figure.
> In imshow at 181
>>subplot(223),imshow(J,[0,176]),title('deblurred image');
Warning: The initial magnification of the image is set to 'fit' in a docked figure.
> In imshow at 181
>>subplot(224),imshow(P,[]),title('restored PSF');
Warning: The initial magnification of the image is set to 'fit' in a docked figure.
> In imshow at 181  
%出现这样的警告怎么处理?

我的图像是从一幅多帧的图像拿出来的,图像的各种属性选择都组合过了,都是一样的结果。
以上,输入图像A和结果图像J是int16,其它为double。
请大虾帮帮我看看是什么问题

[ 本帖最后由 eight 于 2008-5-4 21:18 编辑 ]
回复
分享到:

使用道具 举报

发表于 2008-5-2 22:29 | 显示全部楼层

回复 楼主 的帖子

影响最后的结果吗
 楼主| 发表于 2008-5-3 09:10 | 显示全部楼层

回复 2楼 的帖子

这是用盲目反卷积法对图像去模糊
结果的图像几乎没有什么改善
发表于 2008-5-3 09:49 | 显示全部楼层
出现warning的部分在绘图部分,而不是在核心算法部分,可见warning对结果应该没什么影响。
另外,核心算法部分的参数设置应该是你修改程序的重点,不过还是得你自己研究。除非做相关的内容,否则很难帮到你。
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-23 11:13 , Processed in 0.050374 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表