This is a static copy of a profile reportHome
imagesci\private\imbmpinfo>postProcess (1 call, 0.000 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 |
581 | msg = ''; | 1 | 0.000 s | 96.5% |  |
583 | if (isempty(info.NumColormapEn... | 1 | 0.000 s | 3.5% |  |
597 | if (info.Width < 0) | 1 | 0 s | 0% |  |
595 | end | 1 | 0 s | 0% |  |
594 | end | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
Children (called functions)
No childrenM-Lint results
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 27 |
Non-code lines (comments, blank lines) | 9 |
Code lines (lines that can run) | 18 |
Code lines that did run | 10 |
Code lines that did not run | 8 |
Coverage (did run/can run) | 55.56 % |
Function listing
time calls line
578 function [info, msg] = postProcess(info)
579 %POSTPROCESS Perform some post processing and validity checking.
580
< 0.01 1 581 msg = '';
582
< 0.01 1 583 if (isempty(info.NumColormapEntries))
584 info.NumColormapEntries = 0;
585 end
586
1 587 if (info.NumColormapEntries > 0)
588 info.ColorType = 'indexed';
1 589 else
1 590 if (info.BitDepth <= 8)
591 info.ColorType = 'grayscale';
1 592 else
1 593 info.ColorType = 'truecolor';
1 594 end
1 595 end
596
1 597 if (info.Width < 0)
598 info = [];
599 msg = 'Corrupt BMP file: bad image dimensions';
600 return;
601 end
602
603
604
Other subfunctions in this file are not included in this listing.