This is a static copy of a profile report

Home

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 NameFunction TypeCalls
imreadM-function1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
18
X = readbmpdata(info);
10.047 s60.0%
15
info = imbmpinfo(filename);
10.031 s40.0%
17
map = info.Colormap;
10.000 s0.0%
19
return;
10 s0%
Other lines & overhead  0 s0%
Totals  0.078 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
imagesci\private\readbmpdataM-function10.047 s60.0%
imagesci\private\imbmpinfoM-function10.016 s20.0%
Self time (built-ins, overhead, etc.)  0.016 s20.0%
Totals  0.078 s100% 
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in file24
Non-code lines (comments, blank lines)20
Code lines (lines that can run)4
Code lines that did run4
Code lines that did not run0
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