⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vb_readbmp.m

📁 由VB6.0 gui生成matlab的m文件
💻 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 + -