This is a static copy of a profile reportHome
applylut>ParseInputs (53371 calls, 6.289 sec)
Generated 05-Nov-2014 07:52:46 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/applylut.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
applylut | function | 53371 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
45 | iptcheckinput(varargin{1}, {'n... | 53371 | 1.672 s | 26.6% |  |
44 | iptchecknargin(2,2,nargin,mfil... | 53371 | 1.562 s | 24.8% |  |
47 | iptcheckinput(varargin{2}, {'n... | 53371 | 1.182 s | 18.8% |  |
51 | A = varargin{1}; | 53371 | 0.411 s | 6.5% |  |
57 | LUT = varargin{2}; | 53371 | 0.300 s | 4.8% |  |
All other lines | | | 1.162 s | 18.5% |  |
Totals | | | 6.289 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
iptcheckinput | MEX-file | 106742 | 0.791 s | 12.6% |  |
iptchecknargin | function | 53371 | 0.561 s | 8.9% |  |
Self time (built-ins, overhead, etc.) | | | 4.937 s | 78.5% |  |
Totals | | | 6.289 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 19 |
Non-code lines (comments, blank lines) | 8 |
Code lines (lines that can run) | 11 |
Code lines that did run | 7 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 63.64 % |
Function listing
time calls line
42 function [A,LUT] = ParseInputs(varargin)
43
1.56 53371 44 iptchecknargin(2,2,nargin,mfilename);
1.67 53371 45 iptcheckinput(varargin{1}, {'numeric','logical'},{'real','nonsparse','2d'}, ...
46 mfilename, 'A', 1);
1.18 53371 47 iptcheckinput(varargin{2}, {'numeric','logical'},{'real','vector'}, ...
48 mfilename, 'LUT', 2);
49
50 % force A to be logical
0.41 53371 51 A = varargin{1};
0.17 53371 52 if ~islogical(A)
53 A = A ~= 0;
54 end
55
56 % force LUT to be double
0.30 53371 57 LUT = varargin{2};
0.29 53371 58 if ~isa(LUT,'double')
59 LUT = double(LUT);
60 end
Other subfunctions in this file are not included in this listing.