This is a static copy of a profile reportHome
strel>strel.isflat (20305 calls, 1.702 sec)
Generated 05-Nov-2014 07:53:23 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/strel.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 |
479 | tf(k) = se(k).Flat; | 81713 | 0.401 s | 23.5% |  |
480 | end | 81713 | 0.320 s | 18.8% |  |
478 | for k = 1:numel(se) | 20305 | 0.300 s | 17.6% |  |
477 | tf = false(size(se)); | 20305 | 0.260 s | 15.3% |  |
482 | end | 20305 | 0.110 s | 6.5% |  |
All other lines | | | 0.310 s | 18.2% |  |
Totals | | | 1.702 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 18 |
Non-code lines (comments, blank lines) | 13 |
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
465 function tf = isflat(se)
466 %ISFLAT Return true for flat structuring element.
467 % ISFLAT(SE) returns true (1) if the structuring element SE is flat;
468 % otherwise it returns false (0). If SE is a STREL array, then TF is
469 % the same size as SE.
470
471 % Testing notes
472 % se: STREL array; can be empty
473 %
474 % tf: double logical array, same size as se, containing 0s and
475 % 1s.
476
0.26 20305 477 tf = false(size(se));
0.30 20305 478 for k = 1:numel(se)
0.40 81713 479 tf(k) = se(k).Flat;
0.32 81713 480 end
481
0.11 20305 482 end
Other subfunctions in this file are not included in this listing.