This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
bwdistfunction808
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
158
BW = varargin{1} ~= 0;
8080.871 s87.9%
155
iptchecknargin(1,2,nargin,mfil...
8080.080 s8.1%
160
if nargin < 2
8080.020 s2.0%
156
iptcheckinput(varargin{1}, {'l...
8080.010 s1.0%
161
method = 'euclidean';
8080 s0%
All other lines  0.010 s1.0%
Totals  0.991 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
iptchecknarginfunction8080.010 s1.0%
iptcheckinputMEX-file8080 s0%
Self time (built-ins, overhead, etc.)  0.981 s99.0%
Totals  0.991 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function14
Non-code lines (comments, blank lines)5
Code lines (lines that can run)9
Code lines that did run5
Code lines that did not run4
Coverage (did run/can run)55.56 %
Function listing
   time   calls  line
153 function [BW,method] = parse_inputs(varargin)
154
0.08 808 155 iptchecknargin(1,2,nargin,mfilename);
0.01 808 156 iptcheckinput(varargin{1}, {'logical','numeric'}, {'nonsparse', 'real'}, ...
157 mfilename, 'BW', 1);
0.87 808 158 BW = varargin{1} ~= 0;
159
0.02 808 160 if nargin < 2
808 161 method = 'euclidean';
162 else
163 valid_methods = {'euclidean','cityblock','chessboard','quasi-euclidean'};
164 method = iptcheckstrs(varargin{2}, valid_methods, ...
165 mfilename, 'METHOD', 2);
166 end

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