This is a static copy of a profile reportHome
makeresampler>SampleKernel (1721 calls, 0.210 sec)
Generated 05-Nov-2014 07:53:13 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/makeresampler.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 |
361 | positiveHalf = feval( kernel, ... | 1721 | 0.160 s | 76.2% |  |
360 | n = floor(halfwidth * frequenc... | 1721 | 0.020 s | 9.5% |  |
357 | if length(kernel) ~= 1 || ~isa... | 1721 | 0.020 s | 9.5% |  |
All other lines | | | 0.010 s | 4.8% |  |
Totals | | | 0.210 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
makeresampler>LinearKernel | subfunction | 1721 | 0.110 s | 52.4% |  |
Self time (built-ins, overhead, etc.) | | | 0.100 s | 47.6% |  |
Totals | | | 0.210 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 7 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 5 |
Code lines that did run | 3 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 60.00 % |
Function listing
time calls line
355 function positiveHalf = SampleKernel( kernel, halfwidth, frequency )
356
0.02 1721 357 if length(kernel) ~= 1 || ~isa(kernel,'function_handle')
358 error(message('images:makeresampler:invalidKernel'))
359 end
0.02 1721 360 n = floor(halfwidth * frequency);
0.16 1721 361 positiveHalf = feval( kernel, (halfwidth / n) * (0:n) );
Other subfunctions in this file are not included in this listing.