figim.m

来自「基于"trace transform"的识别2D图像的C++源程序」· M 代码 · 共 28 行

M
28
字号
function figim(im,range)% range can be also the title ('im' goes to the title as well)compl=0; if ~isreal(im), im=abs(im); compl=1; endC=0;if ndims(im)==3, C=1; endif nargin==2  if isnumeric(range) & length(range)>1 % in the range     figure;  if ~C, imagesc(im,range);else image(uint8(im));end; elseif isnumeric(range) & length(range)==1 %fig No.=range if ~C, figure(range);clf;  imagesc(im);else figure(range);clf; image(uint8(im));end; range=''; else figure; if ~C, imagesc(im);else  image(uint8(im));end end end% if nargin==2if nargin==1figure;if ~C, imagesc(im);else  image(uint8(im));endend ttl=inputname(1);if nargin>1, ttl=[ ttl ' : ' num2str(range) ]; endif compl, ttl=[ ttl '   abs of complex!' ]; endtitle(ttl);if ~C, colorbar, end axis image;pixval

⌨️ 快捷键说明

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