This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
bwdist | function | 808 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
158 | BW = varargin{1} ~= 0; | 808 | 0.871 s | 87.9% |  |
155 | iptchecknargin(1,2,nargin,mfil... | 808 | 0.080 s | 8.1% |  |
160 | if nargin < 2 | 808 | 0.020 s | 2.0% |  |
156 | iptcheckinput(varargin{1}, {'l... | 808 | 0.010 s | 1.0% |  |
161 | method = 'euclidean'; | 808 | 0 s | 0% |  |
All other lines | | | 0.010 s | 1.0% |  |
Totals | | | 0.991 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
iptchecknargin | function | 808 | 0.010 s | 1.0% |  |
iptcheckinput | MEX-file | 808 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.981 s | 99.0% |  |
Totals | | | 0.991 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 14 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 9 |
Code lines that did run | 5 |
Code lines that did not run | 4 |
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.