MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   一个小程序的问题,大家帮帮看看 (https://www.labfans.com/bbs/showthread.php?t=3347)

小李老方 2008-05-30 11:46

一个小程序的问题,大家帮帮看看
 
clear all
I=imread('lena.jpg ');
[m,n]=size(I);
len=50; %Len为量化步长
for i=1:m
for j =1:n
tt=I(i,j);
tt1=tt/len;
I1(i,j)=((tt1+1)*len-tt1*len)/2+tt1*len;
end
end
figure
subplot(1,2,1)
imshow(I)
subplot(1,2,2)
imshow(I1)
为什么这个程序在我的机子上是这样显示的?
[IMG]http://img.blog.163.com/photo/y_5U4nOx4vsjDjG-skQvrQ==/1976517286462710636.jpg[/IMG]

小李老方 2008-05-30 11:49

谢谢大家
 
我的邮箱:[email protected]


所有时间均为北京时间。现在的时间是 13:20

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