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;
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;