This is a static copy of a profile report

Home

bwlabeln>parse_inputs (404 calls, 0.110 sec)
Generated 05-Nov-2014 07:52:42 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/bwlabeln.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
bwlabelnfunction404
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
83
iptchecknargin(1,2,nargin,mfil...
4040.050 s45.5%
97
iptcheckconn(conn,mfilename,'C...
4040.040 s36.4%
85
iptcheckinput(varargin{1}, {'n...
4040.020 s18.2%
98
end
4040 s0%
96
conn = varargin{2};
4040 s0%
All other lines  0 s0%
Totals  0.110 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
iptcheckconnfunction4040.040 s36.4%
iptchecknarginfunction4040.020 s18.2%
iptcheckinputMEX-file4040 s0%
Self time (built-ins, overhead, etc.)  0.050 s45.5%
Totals  0.110 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function18
Non-code lines (comments, blank lines)6
Code lines (lines that can run)12
Code lines that did run9
Code lines that did not run3
Coverage (did run/can run)75.00 %
Function listing
   time   calls  line
81 function [A,conn] = parse_inputs(varargin)
82
0.05 404 83 iptchecknargin(1,2,nargin,mfilename);
84
0.02 404 85 iptcheckinput(varargin{1}, {'numeric', 'logical'}, {'real' 'nonsparse'}, ...
86 mfilename, 'BW', 1);
87
404 88 A = varargin{1};
404 89 if ~islogical(A)
90 A = A ~= 0;
91 end
92
404 93 if nargin < 2
94 conn = conndef(ndims(A), 'maximal');
404 95 else
404 96 conn = varargin{2};
0.04 404 97 iptcheckconn(conn,mfilename,'CONN',2);
404 98 end