?? vb_readbmp.m
字號:
function [X,map] = vb_readbmp(filename,offset)
%VB_READBMP Read image data from a BMP file.
% This is identical to the Matlab 6.5 ReadBMP.m file apart from the fact
% that it calls VB_IMBMPINFO.M rather than IMBMPINFO.m
% [X,MAP] = VB_READBMP(FILENAME) reads image data from a BMP file.
% X is a uint8 array that is 2-D for 1-bit, 4-bit, and 8-bit
% image data. X is M-by-N-by-3 for 16-bit, 24-bit and 32-bit image data.
% MAP is normally an M-by-3 MATLAB colormap, but it may be empty if the
% BMP file does not contain a colormap.
%
% See also IMREAD, IMWRITE, IMFINFO.
% Steven L. Eddins, June 1996
% Copyright 1984-2002 The MathWorks, Inc.
% $Revision: 1.11 $ $Date: 2002/06/05 20:09:46 $
%
% Modified by Martin Dale, July 2002
% Version 1.00 9 June 2002
% Version 1.1 12 Feb 2003
% This M-File should be placed in the \toolbox\matlab\iofun\ directory
% Contact Martin.Dale@Physics.org
info = vb_bmpinfo(filename, offset);
map = info.Colormap;
X = readbmpdata(info);
return;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -