This is a static copy of a profile report

Home

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

Line NumberCodeCallsTotal Time% TimeTime Plot
210
if isInputIndexed(params)
828202.634 s41.5%
218
elseif islogical(params.A)
828200.901 s14.2%
209
map = [];
828200.631 s10.0%
223
end
828200.421 s6.6%
222
B = B_in;
828200.310 s4.9%
All other lines  1.442 s22.7%
Totals  6.339 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
imresize>isInputIndexedsubfunction828201.762 s27.8%
Self time (built-ins, overhead, etc.)  4.576 s72.2%
Totals  6.339 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function19
Non-code lines (comments, blank lines)6
Code lines (lines that can run)13
Code lines that did run6
Code lines that did not run7
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.