This is a static copy of a profile reportHome
imagesci\private\imbmpinfo>readVersion3xColormap (1 call, 0.016 sec)
Generated 15-Mar-2007 12:01:59 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\matlab\imagesci\private\imbmpinfo.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
392 | msg = ''; | 1 | 0.000 s | 0.0% |  |
394 | end | 1 | 0.000 s | 0.0% |  |
390 | else | 1 | 0.000 s | 0.0% |  |
377 | if (info.NumColormapEntries &g... | 1 | 0 s | 0% |  |
375 | info.NumColormapEntries = floo... | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0.016 s | 100.0% |  |
Totals | | | 0.016 s | 100% | |
Children (called functions)
No childrenM-Lint results
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 26 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 14 |
Code lines that did run | 5 |
Code lines that did not run | 9 |
Coverage (did run/can run) | 35.71 % |
Function listing
time calls line
372 function [info, msg] = readVersion3xColormap(fid, info)
373 %READVERSION3XCOLORMAP Read colormap entries for version 3.x bitmaps.
374
1 375 info.NumColormapEntries = floor((info.ImageDataOffset - ftell(fid))/4);
376
1 377 if (info.NumColormapEntries > 0)
378
379 [map,count] = fread(fid, info.NumColormapEntries*4, 'uint8');
380 if (count ~= info.NumColormapEntries*4)
381 msg = 'Truncated colormap data';
382 return;
383 else
384 msg = '';
385 end
386
387 map = reshape(map, 4, info.NumColormapEntries);
388 info.Colormap = double(flipud(map(1:3,:))')/255;
389
< 0.01 1 390 else
391
< 0.01 1 392 msg = '';
393
< 0.01 1 394 end
395
396
397
Other subfunctions in this file are not included in this listing.