This is a static copy of a profile reportHome
images/private/tform>checkTform (3442 calls, 0.591 sec)
Generated 05-Nov-2014 07:53:07 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/private/tform.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 |
93 | if ~istform(t) || (numel(t) ~=... | 3442 | 0.230 s | 39.0% |  |
78 | if isstruct(varargin{1}) | 3442 | 0.090 s | 15.3% |  |
83 | if numel(varargin) == 2 | 3442 | 0.080 s | 13.6% |  |
97 | if isempty(t.(f.fwd_fcn)) | 3442 | 0.070 s | 11.9% |  |
85 | A = varargin(1); | 3442 | 0.040 s | 6.8% |  |
All other lines | | | 0.080 s | 13.6% |  |
Totals | | | 0.591 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
images/private/istform | function | 3442 | 0.190 s | 32.2% |  |
Self time (built-ins, overhead, etc.) | | | 0.401 s | 67.8% |  |
Totals | | | 0.591 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 32 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 22 |
Code lines that did run | 8 |
Code lines that did not run | 14 |
Coverage (did run/can run) | 36.36 % |
Function listing
time calls line
72 function [t, A] = checkTform(f, numout, varargin)
73
74 % Look at varargin{1} and varargin{2} to locate the TFORM structure.
75 % Return the remaining arguments (coordinate arrays) in cell
76 % array A.
77
0.09 3442 78 if isstruct(varargin{1})
79 t = varargin{1};
80 A = varargin(2:end);
0.04 3442 81 elseif isstruct(varargin{2})
82 % Old syntax: TFORMFWD(U,T) or TFORMINV(X,T).
0.08 3442 83 if numel(varargin) == 2
0.01 3442 84 t = varargin{2};
0.04 3442 85 A = varargin(1);
86 else
87 error(message('images:tform:TooManyInputs', f.name))
88 end
89 else
90 error(message('images:tform:MissingTform', f.name))
91 end
92
0.23 3442 93 if ~istform(t) || (numel(t) ~= 1)
94 error(message('images:tform:InvalidTform', f.name))
95 end
96
0.07 3442 97 if isempty(t.(f.fwd_fcn))
98 error(message('images:tform:TformMissingFcn', f.name, f.fwd_fcn))
99 end
100
3442 101 if (numout > 1) && (numout ~= t.(f.ndims_out))
102 error(message('images:tform:OutputCountTformMismatch', f.name, f.ndims_out))
103 end
Other subfunctions in this file are not included in this listing.