📄 loadimage.m
字号:
function [f,fn,map]=LoadImage(prompt,pth);
%---------------------------------
% [f,fn,map]=LoadImage(prompt,path) opens an image file and returns bitmap image matrix f and g,
% Default of prompt is 'Read a JPEG image.'.
% Default of pth is 'i\'.
%
%---------------------------------
if ~nargin
prompt='Read a JPEG image.';pth='i\';
elseif nargin==1
pth='i\';
end
[t,p]=uigetfile([pth,'*.*'],prompt);
fn=[p t];
[f,map]=imread(fn);
%g=double(f);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -