資源簡介
writetxt.m
代碼片段和文件信息
clc;clear?all;close?all;
ezz=load(‘0027.txt‘);
ez=ezz;
%ez=ezz(4:2170911);
xxx=zeros(2170881);
yyy=zeros(2170881);
rrr=zeros(2170881);
ggg=zeros(2170881);
bbb=zeros(2170881);
for?u=1:1:217088
????if(ez(u)>0)
%?????if?(ez(u)<4000)&&(ez(u)>0)
???????xxx(u1)=u-512*floor(u/512)+1;
???????xxx(u1)=tan((xxx(u1)-256)/256*60*3.141592653/180/2)*ez(u);
???????yyy(u1)=425-ceil(u/512);
???????yyy(u1)=tan((yyy(u1)-212)/212*70.6*3.141592653/180/2)*ez(u);
????end
end
%?ezcolor=imread(‘
評論
共有 條評論