This is a static copy of a profile reportHome
imresize>preprocessImage (82820 calls, 4.927 sec)
Generated 05-Nov-2014 07:53:41 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/imresize.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
imresize | function | 82820 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
179 | if isInputIndexed(params) | 82820 | 2.133 s | 43.3% |  |
182 | elseif islogical(params.A) | 82820 | 0.891 s | 18.1% |  |
187 | end | 82820 | 0.391 s | 7.9% |  |
185 | else | 82820 | 0.280 s | 5.7% |  |
186 | A = params.A; | 82820 | 0.250 s | 5.1% |  |
All other lines | | | 0.981 s | 19.9% |  |
Totals | | | 4.927 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
imresize>isInputIndexed | subfunction | 82820 | 1.392 s | 28.3% |  |
Self time (built-ins, overhead, etc.) | | | 3.535 s | 71.7% |  |
Totals | | | 4.927 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 12 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 7 |
Code lines that did run | 5 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 71.43 % |
Function listing
time calls line
176 function A = preprocessImage(params)
177 % Convert indexed image to RGB. Convert binary image to uint8.
178
2.13 82820 179 if isInputIndexed(params)
180 A = ind2rgb8(params.A, params.map);
181
0.89 82820 182 elseif islogical(params.A)
183 A = im2uint8(params.A);
184
0.28 82820 185 else
0.25 82820 186 A = params.A;
0.39 82820 187 end
Other subfunctions in this file are not included in this listing.