亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? digitize.m

?? zemax與matlab調用程序
?? M
字號:
function nXY = digitize()
%function iXY = digitize()
%                                                                            
%jdc 17-Feb-00
%PURPOSE   
%     > Interactively digitizes data from an image file.  
%     > X-Y axis scales can be any combination of linear, log.
%     > Automatic compensation for angular misalignment of  
%       image with respect to screen axes.
%INPUT
%       (All input is interactively prompted)
%     > imagename - image filespec (any Matlab-compatible format)
%     > three points defining coordinate axes  
%     > arbitrary number of points on graph - digitized with left mouse button  
%OUTPUT
%     > numbered sets of iXY triplets written to screen and optionally to disc storage
%     > iXY - 3 x i matrix of all points digitized from image 
%
%TYPICAL CALL 
%       digitize <RETURN>
%       It is necessary to switch between the MATLAB command window and the graphic display window to
%       enter the prompted information.

% This file is not part of MZDDE. It was downloaded from the MATLAB Central File Exchamge.
% A small modification was required to get it working under Matlab 6 Release 13.
% Also, a GUI file dialog is now used to select the image file.
% http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=287&objectType=file
% The author is J Cogdell. This is a rather useful utility.

% $Header: C:\\Projects\\RCS\\C\\Projects\\MZDDE\\digitize.m,v 1.1 2005-04-22 09:52:52+02 dgriffith Exp dgriffith $
% $Revision: 1.1 $

fmts = imformats; % Get the available image formats that will be read by imread
% Cook up a string to give to uigetfile
allimagefmts = '';
for i = 1:length(fmts)
    if length(fmts(i).ext) == 1
      extensions = ['*.' char(fmts(i).ext)];
    else 
      extensions = ['*.' char(fmts(i).ext(1)) ';*.' char(fmts(i).ext(2))];
    end
    uigetstring{i,1} = extensions;
    uigetstring{i,2} = fmts(i).description;
    allimagefmts = [allimagefmts ';' extensions];
end
uigetstring{end+1,1} = allimagefmts;
uigetstring{end,2} = 'All Known Image File Formats';
uigetstring{end+1,1} = '*.*';
uigetstring{end,2} = 'All Files (*.*)';

[filename, pathname] = uigetfile(uigetstring, 'Select an Image File');

imagename = [pathname filename];
pic = imread(imagename);
imshow(pic);
set(gcf,'Units','normalized','Position',[0 .15 1 .85])
set(gca,'Units','normalized','Position',[0   0 1   1]);
fprintf([ 'Select the plot origin with the left mouse button ...\n' 7])
[Xopixels,Yopixels] = ginput(1);
line(Xopixels,Yopixels,'Marker','.','Color','r')
OriginXYdata = input([   '  Enter the [x y] graph values at the origin => ' 7]);
if length(OriginXYdata)==1,
   OriginXYdata(2) = input(['       Enter the Y graph value at the origin => ' 7]);
end
fprintf(['\nSelect a point on the X-axis ...\n' 7])
[XAxisXpixels,XAxisYpixels] = ginput(1);
line(XAxisXpixels,XAxisYpixels,'Marker','.','Color','r')
XAxisXdata = input(['Enter the X-value of the point => ' 7]);
logx =     input(   ' X-axis scale? [ {lin} | log ] => ','s');
if findstr('log',lower(logx)),
   logx = 1;
   scalefactorXdata = log10(XAxisXdata/OriginXYdata(1));
else
   logx = 0;
   scalefactorXdata = XAxisXdata - OriginXYdata(1);
end 
th = atan((XAxisYpixels-Yopixels)/(XAxisXpixels-Xopixels));   % note image file line 1 is at top
%fprintf(          '              Graph rotation angle: %+3.1f degrees +cw\n', th*180/pi)
rotmat = [cos(th) sin(th); -sin(th) cos(th)];    % axis rotation matrix

fprintf(['\nSelect a point on the Y-axis ...\n' 7])
[YAxisXpixels,YAxisYpixels] = ginput(1);
line(YAxisXpixels,YAxisYpixels,'Marker','.','Color','r')
YAxisYdata = input(['Enter the Y-value of the point => ' 7]);
logy =     input(   ' Y-axis scale? [ {lin} | log ] => ','s');
if findstr('log',lower(logy)),
   logy = 1;
   scalefactorYdata = log10(YAxisYdata/OriginXYdata(2));
else
   logy = 0;
   scalefactorYdata = YAxisYdata - OriginXYdata(2);
end 
delxyx = rotmat*[(XAxisXpixels-Xopixels);(XAxisYpixels-Yopixels)];
delxyy = rotmat*[(YAxisXpixels-Xopixels);(YAxisYpixels-Yopixels)];
delXcal = delxyx(1);
delYcal = delxyy(2);

numberformat = '%6.2f';
nXY = [];
ng = 0;
while 1,
   fprintf(['\n Select graph points with left mouse button ...\n',...
              ' To terminate capture - select a point to the left of or below the graph axes\n' 7])
   n = 0;
   
%---------------------------------------------------------------------------------------- data acquire loop
   while 1
      [x,y] = ginput(1);                       
      line(x,y,'Marker','+','Color','g')
      xy = rotmat*[(x-Xopixels);(y-Yopixels)];
      delXpoint = xy(1);
      delYpoint = xy(2);
      if delXpoint>=0 & delYpoint<=0,      
         if logx,
            x = OriginXYdata(1)*10^(delXpoint/delXcal*scalefactorXdata);
         else
            x = OriginXYdata(1) + delXpoint/delXcal*scalefactorXdata;
         end
         if logy, 
            y = OriginXYdata(2)*10^(delYpoint/delYcal*scalefactorYdata);
         else  
            y = OriginXYdata(2) + delYpoint/delYcal*scalefactorYdata;
         end
         n = n+1;
         xpt(n) = x;
         ypt(n) = y;
         fprintf(      ['%4.0f  ' numberformat '  ' numberformat '\n'],n,x,y)
         ng = ng+1;
         nXY(ng,:) = [n x y];
      else
         break
      end
   end
   
%---------------------------------------------------------------------------------------------
   fname =        input([   '  Enter a filespec to save the data to (default: no save) => ' 7],'s');
   if ~isempty(fname),
      numberformat = input(['        Enter a format to save the data (default: %6.2f ) => ' 7],'s');
      if isempty(numberformat),
         numberformat = '%6.2f';
      end
      
      for i = 1:n,
         fprintf(fname,['%4.0f  ' numberformat '  ' numberformat '\n'],i,xpt(i),ypt(i));
      end
      
      I = findstr('\',fname);
      if ~isempty(I),
         for i = length(I):-1:1,
            fname = [fname(1:i) '\' fname(i+1:length(fname))];
         end
      end   
      fprintf([   sprintf(['                         %3.0f x-y data pairs saved to file => ' fname],n) '\n'])
   end
   yn = input([            '          Digitize more data from this graph? [ {y} | n ] => ' 7],'s');
   if findstr('n',lower(yn)),
      break
   end
end   

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色狠狠av一区二区三区| 美日韩一区二区| 久久综合国产精品| 欧美一级高清片在线观看| 在线国产亚洲欧美| 欧美中文字幕一区| 欧美日韩国产高清一区| 欧美丰满高潮xxxx喷水动漫| 欧美人妇做爰xxxⅹ性高电影| 欧美女孩性生活视频| 欧美日韩中字一区| 欧美福利电影网| 日韩欧美你懂的| 久久综合av免费| 久久精品视频一区二区| 国产精品久久三| 悠悠色在线精品| 亚洲1区2区3区4区| 久久精品国产77777蜜臀| 国产一区二区三区久久久| 国产91精品入口| 一本色道久久加勒比精品| 欧美日韩国产综合一区二区| 欧美va亚洲va国产综合| 国产精品丝袜91| 午夜欧美电影在线观看| 国产一区二区三区四区五区美女 | 高清不卡在线观看| 99麻豆久久久国产精品免费优播| 欧美在线观看你懂的| 日韩美女天天操| 国产精品第五页| 日本女人一区二区三区| 丁香亚洲综合激情啪啪综合| 欧美三片在线视频观看| 久久嫩草精品久久久精品一| 亚洲九九爱视频| 韩国午夜理伦三级不卡影院| 92国产精品观看| 欧美成人一区二区三区片免费| 日韩一区欧美小说| 麻豆成人免费电影| 色先锋资源久久综合| 精品伦理精品一区| 亚洲线精品一区二区三区| 国产高清不卡一区二区| 欧美三级欧美一级| 一色屋精品亚洲香蕉网站| 日一区二区三区| 91在线视频免费91| 精品国产青草久久久久福利| 一区二区三区加勒比av| 成人污视频在线观看| 日韩一区二区三区视频在线观看 | 亚洲欧美二区三区| 国产麻豆视频精品| 日韩一级二级三级精品视频| 亚洲一区av在线| 91在线视频播放| 国产欧美一区二区三区网站| 蜜桃久久久久久久| 欧美日韩久久久一区| 亚洲天堂久久久久久久| 国产高清久久久| 久久精品日韩一区二区三区| 蜜桃一区二区三区四区| 4hu四虎永久在线影院成人| 亚洲综合成人网| 91久久香蕉国产日韩欧美9色| 亚洲国产精品传媒在线观看| 老司机精品视频线观看86| 欧美日本一区二区三区四区 | 欧美中文字幕亚洲一区二区va在线 | 中文字幕欧美三区| 国产精品一二三四| 国产欧美一区二区三区鸳鸯浴| 韩国一区二区在线观看| 精品99999| 国产一区二区网址| 久久日一线二线三线suv| 国精品**一区二区三区在线蜜桃| 日韩美女视频一区二区在线观看| 捆绑紧缚一区二区三区视频| 日韩欧美一二三区| 国产在线不卡一区| 国产精品无遮挡| 99re热这里只有精品视频| 亚洲啪啪综合av一区二区三区| 91在线视频网址| 亚洲狠狠爱一区二区三区| 在线播放一区二区三区| 日韩电影在线免费观看| 日韩欧美一级片| 国产iv一区二区三区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 欧美卡1卡2卡| 开心九九激情九九欧美日韩精美视频电影 | 91在线精品一区二区| 亚洲视频一二三区| 7777精品伊人久久久大香线蕉的 | 99精品欧美一区二区三区综合在线| 亚洲欧洲精品天堂一级| 欧美综合色免费| 免费高清在线视频一区·| 久久亚洲综合色一区二区三区| 成人激情校园春色| 亚洲一级不卡视频| 久久先锋影音av鲁色资源| 99这里都是精品| 日韩 欧美一区二区三区| 久久久www成人免费无遮挡大片 | 色素色在线综合| 久久精品国产久精国产爱| 国产精品久久久久7777按摩| 4438x成人网最大色成网站| 国产高清久久久久| 三级久久三级久久| 中文字幕国产精品一区二区| 欧美巨大另类极品videosbest| 国产伦精品一区二区三区在线观看 | 日韩精品中文字幕在线不卡尤物| 国产盗摄女厕一区二区三区| 亚洲一区二区精品久久av| 久久久久久99精品| 91精品国产综合久久福利软件| av电影天堂一区二区在线观看| 日本不卡中文字幕| 亚洲欧洲精品一区二区三区不卡| 精品久久久久香蕉网| 欧美综合亚洲图片综合区| 国产成人av影院| 蜜桃av一区二区三区电影| 夜夜揉揉日日人人青青一国产精品| 久久久亚洲国产美女国产盗摄 | 69久久夜色精品国产69蝌蚪网| 成人性生交大合| 奇米色777欧美一区二区| 一区二区成人在线| 中文字幕在线一区| 国产日产欧产精品推荐色| 精品国产一区二区精华| 欧美精品日韩综合在线| 在线亚洲免费视频| 99综合电影在线视频| 国产九九视频一区二区三区| 另类综合日韩欧美亚洲| 另类欧美日韩国产在线| 日韩和欧美的一区| 天堂影院一区二区| 日韩中文字幕1| 午夜免费久久看| 三级不卡在线观看| 日本美女一区二区三区| 秋霞电影网一区二区| 日韩国产精品久久久久久亚洲| 日韩影院在线观看| 日本一区中文字幕| 日本午夜精品视频在线观看 | 精品日韩欧美在线| 精品久久久久一区| 欧美成人激情免费网| 久久综合给合久久狠狠狠97色69| 精品国产第一区二区三区观看体验| 日韩欧美精品三级| 精品国产3级a| 欧美激情中文不卡| 一区二区三区不卡在线观看| 亚洲五月六月丁香激情| 日韩一区精品视频| 精品一区二区久久久| 国产91精品一区二区麻豆亚洲| 99视频精品全部免费在线| 91啦中文在线观看| 日韩一区二区在线观看视频 | 国产精品午夜电影| 亚洲免费三区一区二区| 天天亚洲美女在线视频| 久久99精品国产91久久来源| 国产精品亚洲成人| 在线观看欧美黄色| 日韩精品一区二区三区老鸭窝 | 99免费精品视频| 欧美日韩高清一区二区三区| 日韩视频在线你懂得| 国产精品网站在线观看| 一区二区三区成人在线视频| 久久黄色级2电影| 不卡视频在线看| 欧美另类久久久品| 国产精品久久久久久久裸模| 亚洲福利视频一区| 国产精品一区二区久久不卡| 日本韩国精品在线| 欧美精品一区二| 亚洲午夜免费电影| 国产激情一区二区三区四区| 欧美午夜在线观看| 日本一区二区综合亚洲| 日韩精品久久久久久| 99久久久精品|