This is a static copy of a profile reportHome
imresize>deriveScaleFromSize (82820 calls, 4.126 sec)
Generated 05-Nov-2014 07:53:38 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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
718 | if ~isempty(params.size_dim) | 82820 | 1.222 s | 29.6% |  |
728 | scale = params.output_size ./ ... | 82820 | 0.641 s | 15.5% |  |
727 | A_2d_size = [size(params.A, 1)... | 82820 | 0.591 s | 14.3% |  |
729 | end | 82820 | 0.451 s | 10.9% |  |
726 | else | 82820 | 0.280 s | 6.8% |  |
All other lines | | | 0.941 s | 22.8% |  |
Totals | | | 4.126 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 15 |
Non-code lines (comments, blank lines) | 8 |
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
715 function scale = deriveScaleFromSize(params)
716 % Determine the scale factor from the specified output size.
717
1.22 82820 718 if ~isempty(params.size_dim)
719 % User specified output size in only one dimension. The other was
720 % automatically computed. The scale factor should be calculated
721 % only from the dimension specified, which is params.size_dim.
722
723 scale = params.output_size(params.size_dim) / size(params.A, params.size_dim);
724 scale = [scale scale];
725
0.28 82820 726 else
0.59 82820 727 A_2d_size = [size(params.A, 1) size(params.A, 2)];
0.64 82820 728 scale = params.output_size ./ A_2d_size;
0.45 82820 729 end
Other subfunctions in this file are not included in this listing.