This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
321 | height = se.height; | 75653 | 1.031 s | 29.6% |  |
317 | if length(se) ~= 1 | 75653 | 1.021 s | 29.3% |  |
323 | end | 75653 | 0.451 s | 12.9% |  |
All other lines | | | 0.981 s | 28.2% |  |
Totals | | | 3.485 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 26 |
Non-code lines (comments, blank lines) | 21 |
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
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.