wsszmy
2009-05-13, 14:32
J=imread('fire.jpg');
I1= rgb2gray(J);
figure,imshow(I1)
%选取阈值为0.2,对原始图像进行四叉树分解,并以灰度图的形式显示分解所得的稀疏矩阵
S = qtdecomp(I1,0.2);
S2=full(S);
figure,imshow(S2)
这是程序,运行后提示错误为
??? Error using ==> qtdecomp>ParseInputs
Size of A is not a multiple of the maximum block dimension
Error in ==> qtdecomp at 88
[A, func, params, minDim, maxDim] = ParseInputs(varargin{:});
这是毕业设计中的问题,急求教高手解答,不甚感激!!!
I1= rgb2gray(J);
figure,imshow(I1)
%选取阈值为0.2,对原始图像进行四叉树分解,并以灰度图的形式显示分解所得的稀疏矩阵
S = qtdecomp(I1,0.2);
S2=full(S);
figure,imshow(S2)
这是程序,运行后提示错误为
??? Error using ==> qtdecomp>ParseInputs
Size of A is not a multiple of the maximum block dimension
Error in ==> qtdecomp at 88
[A, func, params, minDim, maxDim] = ParseInputs(varargin{:});
这是毕业设计中的问题,急求教高手解答,不甚感激!!!