查看单个帖子
旧 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 当前离线   回复时引用此帖