This is a static copy of a profile reportHome
imclearborder>parse_inputs (1721 calls, 0.290 sec)
Generated 05-Nov-2014 07:52:43 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/imclearborder.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 |
124 | iptcheckconn(conn,mfilename,'C... | 1721 | 0.100 s | 34.5% |  |
114 | iptchecknargin(1,2,nargin,mfil... | 1721 | 0.060 s | 20.7% |  |
117 | iptcheckinput(im, {'numeric' '... | 1721 | 0.040 s | 13.8% |  |
125 | end | 1721 | 0.020 s | 6.9% |  |
123 | conn = varargin{2}; | 1721 | 0.020 s | 6.9% |  |
All other lines | | | 0.050 s | 17.2% |  |
Totals | | | 0.290 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
iptcheckconn | function | 1721 | 0.090 s | 31.0% |  |
iptchecknargin | function | 1721 | 0.020 s | 6.9% |  |
iptcheckinput | MEX-file | 1721 | 0.010 s | 3.4% |  |
Self time (built-ins, overhead, etc.) | | | 0.170 s | 58.6% |  |
Totals | | | 0.290 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 15 |
Non-code lines (comments, blank lines) | 6 |
Code lines (lines that can run) | 9 |
Code lines that did run | 8 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 88.89 % |
Function listing
time calls line
111 function [im,conn] = parse_inputs(varargin)
112
113
0.06 1721 114 iptchecknargin(1,2,nargin,mfilename);
115
0.01 1721 116 im = varargin{1};
0.04 1721 117 iptcheckinput(im, {'numeric' 'logical'}, {'nonsparse' 'real'}, ...
118 mfilename, 'IM', 1);
119
0.01 1721 120 if nargin < 2
121 conn = conndef(ndims(im),'maximal');
0.01 1721 122 else
0.02 1721 123 conn = varargin{2};
0.10 1721 124 iptcheckconn(conn,mfilename,'CONN',2);
0.02 1721 125 end
Other subfunctions in this file are not included in this listing.