This is a static copy of a profile report

Home

strel>strel.getheight (75653 calls, 3.485 sec)
Generated 05-Nov-2014 07:53:21 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/morphopfunction75653
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
321
height = se.height;
756531.031 s29.6%
317
if length(se) ~= 1
756531.021 s29.3%
323
end
756530.451 s12.9%
All other lines  0.981 s28.2%
Totals  3.485 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function26
Non-code lines (comments, blank lines)21
Code lines (lines that can run)5
Code lines that did run3
Code lines that did not run2
Coverage (did run/can run)60.00 %
Function listing
   time   calls  line
298 function height = getheight(se)
299 %GETHEIGHT Get height of structuring element.
300 % H = GETHEIGHT(SE) returns an array the same size as GETNHOOD(SE)
301 % containing the height associated with each of the structuring element
302 % neighbors. H is all zeros for a flat structuring element.
303 %
304 % Example
305 % -------
306 % se = strel(ones(3,3),magic(3));
307 % getheight(se)
308
309 % Testing notes
310 % Syntaxes
311 % --------
312 % HEIGHT = GETHEIGHT(SE)
313 %
314 % se: a 1-by-1 strel array; it may have no neighbors.
315 % height: a double array with the same size as NHOOD = GETNHOOD(SE).
316
1.02 75653 317 if length(se) ~= 1
318 error(message('images:getheight:wrongType'));
319 end
320
1.03 75653 321 height = se.height;
322
0.45 75653 323 end

Other subfunctions in this file are not included in this listing.