This is a static copy of a profile reportHome
strel>strel.getnhood (231807 calls, 9.603 sec)
Generated 05-Nov-2014 07:53:20 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 |
394 | if length(se) ~= 1 | 231807 | 3.194 s | 33.3% |  |
398 | nhood = se.nhood; | 231807 | 1.312 s | 13.7% |  |
400 | end | 231807 | 1.112 s | 11.6% |  |
All other lines | | | 3.986 s | 41.5% |  |
Totals | | | 9.603 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 27 |
Non-code lines (comments, blank lines) | 22 |
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
374 function nhood = getnhood(se)
375 %GETNHOOD Get structuring element neighborhood.
376 % NHOOD = GETNHOOD(SE) returns the neighborhood associated with the
377 % structuring element SE.
378 %
379 % Example
380 % -------
381 %
382 % se = strel(eye(5));
383 % nhood = getnhood(se)
384
385 % Testing notes
386 % Syntaxes
387 % --------
388 % NHOOD = GETNHOOD(SE)
389 %
390 % se: 1-by-1 STREL array
391 %
392 % nhood: Double array containing 0s and 1s. Should be logical.
393
3.19 231807 394 if length(se) ~= 1
395 error(message('images:getnhood:wrongType'));
396 end
397
1.31 231807 398 nhood = se.nhood;
399
1.11 231807 400 end
Other subfunctions in this file are not included in this listing.