Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2009-03-30, 12:38   #1
yeshenyue
初级会员
 
注册日期: 2009-03-10
年龄: 38
帖子: 6
声望力: 0
yeshenyue 正向着好的方向发展
难过 [求助]分解出来全是黑色一片

我在做lena256图像分解 为什么分解出来时一片黑色 显示的错误在Error in ==> F:\zhongyao\work\waveletgx.m
On line 16 ==> Y = waveletcdf97(X,1); % 1-stage transform of the intensity channel

我的程序是clear,close all,clc
ImageFile = 'lena256.bmp';

% Load the demo image, a photograph of a palm tree
X = double(imread(ImageFile))/255;
N = size(X);

figure;
subplot(2,1,1);
imshow(X);
axis image; axis off;
title(sprintf('Original (%dx%d)',N(2),N(1)));
drawnow;

subplot(2,2,3);
Y = waveletcdf97(X,1); % 1-stage transform of the intensity channel
imshow(abs(Y).^0.5);
axis image; axis off;
title('1-stage transform');
drawnow;

subplot(2,2,4);
Y = waveletcdf97(X,3); % 3-stage transform
imshow(abs(Y).^0.5);
axis image; axis off;
title('3-stage transform');
drawnow;

有没有高手帮我改下 不胜感激 谢谢
yeshenyue 当前离线   回复时引用此帖
旧 2009-03-31, 10:03   #2
silas_xue
高级会员
 
注册日期: 2008-11-01
年龄: 39
帖子: 406
声望力: 26
silas_xue 是一个将要出名的人
默认 回复: [求助]分解出来全是黑色一片

lz waveletcdf97( )这个函数不是MatLAB中的函数 前面应当没有错的
估计是这个函数的问题
把函数贴出来 大家一起讨论一下
silas_xue 当前离线   回复时引用此帖
回复

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为北京时间。现在的时间是 17:21


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.