This is a static copy of a profile reportHome
imresize>isPureNearestNeighborComputation (331280 calls, 7.090 sec)
Generated 05-Nov-2014 07:53:49 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 |
779 | tf = one_weight_per_pixel &... | 331280 | 2.724 s | 38.4% |  |
778 | one_weight_per_pixel = size(we... | 331280 | 1.122 s | 15.8% |  |
All other lines | | | 3.244 s | 45.8% |  |
Totals | | | 7.090 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 7 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 2 |
Code lines that did run | 2 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
773 function tf = isPureNearestNeighborComputation(weights)
774 % True if there is only one column of weights, and if the weights are
775 % all one. For this case, the resize can be done using a quick
776 % indexing operation.
777
1.12 331280 778 one_weight_per_pixel = size(weights, 2) == 1;
2.72 331280 779 tf = one_weight_per_pixel && all(weights == 1);
Other subfunctions in this file are not included in this listing.