MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] 请各位高手指点错误 (https://www.labfans.com/bbs/showthread.php?t=8645)

z8z88 2009-05-26 21:55

请各位高手指点错误
 
I=imread('12.bmp');
figure(1);imshow(I);
I=double(I);
J=floor(I/32);J1=floor(J/4);J2=rem(floor(J/2),2);J3=rem(J,2);
POut(:,:,1)=J1;POut(:,:,2)=J2;POut(:,:,3)=J3;
figure(2);imshow(POut);
我运行上面的程序时出现下列错误,不知道是为什么?
??? Subscripted assignment dimension mismatch.

Error in ==> Untitled6 at 5
POut(:,:,1)=J1;POut(:,:,2)=J2;POut(:,:,3)=J3;

anbcjys 2009-05-27 21:52

回复: 请各位高手指点错误
 
[QUOTE=z8z88;28657]I=imread('12.bmp');
figure(1);imshow(I);
I=double(I);
J=floor(I/32);J1=floor(J/4);J2=rem(floor(J/2),2);J3=rem(J,2);
POut(:,:,1)=J1;POut(:,:,2)=J2;POut(:,:,3)=J3;
figure(2);imshow(POut);
我运行上面的程序时出现下列错误,不知道是为什么?
??? Subscripted assignment dimension mismatch.

Error in ==> Untitled6 at 5
POut(:,:,1)=J1;POut(:,:,2)=J2;POut(:,:,3)=J3;[/QUOTE]

矩阵付值不正确 '


所有时间均为北京时间。现在的时间是 11:30

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