This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
images/private/morphop>ParseInputssubfunction14245
imclose>ParseInputssubfunction6060
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
479
tf(k) = se(k).Flat;
817130.401 s23.5%
480
end
817130.320 s18.8%
478
for k = 1:numel(se)
203050.300 s17.6%
477
tf = false(size(se));
203050.260 s15.3%
482
end
203050.110 s6.5%
All other lines  0.310 s18.2%
Totals  1.702 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function18
Non-code lines (comments, blank lines)13
Code lines (lines that can run)5
Code lines that did run5
Code lines that did not run0
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.