This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
images/private/morphop>ParseInputssubfunction77374
images/private/morphopfunction75653
imclose>ParseInputssubfunction6060
images/.../morphop>NhoodShapesOrthogonalsubfunction72720
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
394
if length(se) ~= 1
2318073.194 s33.3%
398
nhood = se.nhood;
2318071.312 s13.7%
400
end
2318071.112 s11.6%
All other lines  3.986 s41.5%
Totals  9.603 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function27
Non-code lines (comments, blank lines)22
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
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.