This is a static copy of a profile reportHome
imresize>postprocessImage (82820 calls, 6.339 sec)
Generated 05-Nov-2014 07:53:42 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 |
210 | if isInputIndexed(params) | 82820 | 2.634 s | 41.5% |  |
218 | elseif islogical(params.A) | 82820 | 0.901 s | 14.2% |  |
209 | map = []; | 82820 | 0.631 s | 10.0% |  |
223 | end | 82820 | 0.421 s | 6.6% |  |
222 | B = B_in; | 82820 | 0.310 s | 4.9% |  |
All other lines | | | 1.442 s | 22.7% |  |
Totals | | | 6.339 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
imresize>isInputIndexed | subfunction | 82820 | 1.762 s | 27.8% |  |
Self time (built-ins, overhead, etc.) | | | 4.576 s | 72.2% |  |
Totals | | | 6.339 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 19 |
Non-code lines (comments, blank lines) | 6 |
Code lines (lines that can run) | 13 |
Code lines that did run | 6 |
Code lines that did not run | 7 |
Coverage (did run/can run) | 46.15 % |
Function listing
time calls line
205 function [B,map] = postprocessImage(B_in, params)
206 % If input was indexed, convert output back to indexed.
207 % If input was binary, convert output back to binary.
208
0.63 82820 209 map = [];
2.63 82820 210 if isInputIndexed(params)
211 if strcmp(params.colormap_method, 'original')
212 map = params.map;
213 B = rgb2ind(B_in, map, params.dither_option);
214 else
215 [B,map] = rgb2ind(B_in, 256, params.dither_option);
216 end
217
0.90 82820 218 elseif islogical(params.A)
219 B = B_in > 128;
220
0.27 82820 221 else
0.31 82820 222 B = B_in;
0.42 82820 223 end
Other subfunctions in this file are not included in this listing.