This is a static copy of a profile reportHome
imresize>resizeAlongDimUsingNearestNeighbor (82820 calls, 4.626 sec)
Generated 05-Nov-2014 07:53:51 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 |
792 | out = in(subscripts{:}); | 82820 | 1.102 s | 23.8% |  |
790 | subscripts = subscripts(1, one... | 82820 | 0.901 s | 19.5% |  |
791 | subscripts{dim} = indices; | 82820 | 0.721 s | 15.6% |  |
789 | subscripts = {':'}; | 82820 | 0.340 s | 7.4% |  |
788 | num_dims = max(ndims(in), dim)... | 82820 | 0.290 s | 6.3% |  |
All other lines | | | 1.272 s | 27.5% |  |
Totals | | | 4.626 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 10 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 5 |
Code lines that did run | 5 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
783 function out = resizeAlongDimUsingNearestNeighbor(in, dim, indices)
784 % Resize using a multidimensional indexing operation. Preserve the
785 % array along all dimensions other than dim. Along dim, use the
786 % indices input vector as a subscript vector.
787
0.29 82820 788 num_dims = max(ndims(in), dim);
0.34 82820 789 subscripts = {':'};
0.90 82820 790 subscripts = subscripts(1, ones(1, num_dims));
0.72 82820 791 subscripts{dim} = indices;
1.10 82820 792 out = in(subscripts{:});
Other subfunctions in this file are not included in this listing.