This is a static copy of a profile reportHome
imagesci\private\readbmp (1 call, 0.078 sec)
Generated 15-Mar-2007 12:01:57 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\imagesci\private\readbmp.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
imread | M-function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
18 | X = readbmpdata(info); | 1 | 0.047 s | 60.0% |  |
15 | info = imbmpinfo(filename); | 1 | 0.031 s | 40.0% |  |
17 | map = info.Colormap; | 1 | 0.000 s | 0.0% |  |
19 | return; | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.078 s | 100% | |
Children (called functions)
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 24 |
Non-code lines (comments, blank lines) | 20 |
Code lines (lines that can run) | 4 |
Code lines that did run | 4 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function [X,map] = readbmp(filename)
2 %READBMP Read image data from a BMP file.
3 % [X,MAP] = READBMP(FILENAME) reads image data from a BMP file.
4 % X is a uint8 array that is 2-D for 1-bit, 4-bit, and 8-bit
5 % image data. X is M-by-N-by-3 for 16-bit, 24-bit and 32-bit image data.
6 % MAP is normally an M-by-3 MATLAB colormap, but it may be empty if the
7 % BMP file does not contain a colormap.
8 %
9 % See also IMREAD, IMWRITE, IMFINFO.
10
11 % Steven L. Eddins, June 1996
12 % Copyright 1984-2002 The MathWorks, Inc.
13 % $Revision: 1.1.6.1 $ $Date: 2003/12/13 03:01:05 $
14
0.03 1 15 info = imbmpinfo(filename);
16
< 0.01 1 17 map = info.Colormap;
0.05 1 18 X = readbmpdata(info);
1 19 return;
20
21
22
23
24