imagetitle.m

来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 70 行

M
70
字号
function imagetitle(tit)%IMAGETITLE Set the image title%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu,    mark@alice.uoregon.edu%global H I Handleimg CB_imagemode Handlebar Handleimgax Handleframeax Handlefigglobal Fname FontName FontSize FontWeight Handlelineglobal FullFname imginfomicroscopes='NanoscopeII:??  NanoscopeIII:1652E  NanoscopeIIIA:521d';if nargin==0  tit=strrep(FullFname,'\','\\');endvalue=[];if isempty(H)  dat='';  mic=Inf;else  dat=['Date: ' getparameter(H, 'Date',1)];  mic=getparameter(H, 'Serial number',1);endif isempty(mic) | (mic == inf)  value = 'Unknown';else  while ~isempty(microscopes)    [m, microscopes]= strtok(microscopes);    if findstr(m, mic)      value=strtok(m, ':');    end  endendif isempty(value)  value=mic;endmic=['Microscope: ' value];if isempty(H)  mod='';  itype=inf;else  mod=['Mode: ' getparameter(H, 'Id',1)];  itype=getparameter(H, 'Image data',inf);end   sep='  -  ';if itype==inf, itype='';endif ~isempty(itype), itype=['Image data: ' itype];endimginfo=[mic, sep, mod, sep, itype sep dat];axes(Handleframeax);title(tit, 'FontName', FontName, 'FontWeight', FontWeight,...	'FontSize', FontSize, 'VerticalAlignment', 'bottom',...	'ButtonDownFcn', 'global imginfo;statusbar(imginfo);');            if isobj(Handleimgax)  axes(Handleimgax);endreturn

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?