This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
images/private/tformfunction3442
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
93
if ~istform(t) || (numel(t) ~=...
34420.230 s39.0%
78
if isstruct(varargin{1})
34420.090 s15.3%
83
if numel(varargin) == 2
34420.080 s13.6%
97
if isempty(t.(f.fwd_fcn))
34420.070 s11.9%
85
A = varargin(1);
34420.040 s6.8%
All other lines  0.080 s13.6%
Totals  0.591 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
images/private/istformfunction34420.190 s32.2%
Self time (built-ins, overhead, etc.)  0.401 s67.8%
Totals  0.591 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function32
Non-code lines (comments, blank lines)10
Code lines (lines that can run)22
Code lines that did run8
Code lines that did not run14
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.