This is a static copy of a profile reportHome
makeresampler>StandardKernel (1721 calls, 0.911 sec)
Generated 05-Nov-2014 07:53:12 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 |
333 | interpolant = GetCanonicalStri... | 1721 | 0.581 s | 63.7% |  |
341 | positiveHalf = SampleKernel(@L... | 1721 | 0.210 s | 23.1% |  |
339 | case 'linear' | 1721 | 0.050 s | 5.5% |  |
340 | halfwidth = 1.0; | 1721 | 0.010 s | 1.1% |  |
336 | case 'nearest' | 1721 | 0.010 s | 1.1% |  |
All other lines | | | 0.050 s | 5.5% |  |
Totals | | | 0.911 s | 100% | |
Children (called functions)
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 21 |
Non-code lines (comments, blank lines) | 6 |
Code lines (lines that can run) | 15 |
Code lines that did run | 7 |
Code lines that did not run | 8 |
Coverage (did run/can run) | 46.67 % |
Function listing
time calls line
331 function K = StandardKernel( interpolant, frequency )
332
0.58 1721 333 interpolant = GetCanonicalString( interpolant, 'Interpolant', ...
334 {'nearest','linear','cubic'});
1721 335 switch interpolant
0.01 1721 336 case 'nearest'
337 K = [];
338
0.05 1721 339 case 'linear'
0.01 1721 340 halfwidth = 1.0;
0.21 1721 341 positiveHalf = SampleKernel(@LinearKernel, halfwidth, frequency);
1721 342 K = {halfwidth, positiveHalf};
343
344 case 'cubic'
345 halfwidth = 2.0;
346 positiveHalf = SampleKernel(@CubicKernel, halfwidth, frequency);
347 K = {halfwidth, positiveHalf};
348
349 otherwise
350 error(message('images:makeresampler:invalidInterpolant'))
351 end
Other subfunctions in this file are not included in this listing.