This is a static copy of a profile report

Home

fliptform (1721 calls, 1.562 sec)
Generated 05-Nov-2014 07:52:42 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/images/images/fliptform.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
imrotatefunction1721
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
27
tflip = maketform('custom', t....
17211.352 s86.5%
23
if ~istform(t) || (length(t) ~...
17210.150 s9.6%
21
iptchecknargin(1,1,nargin,mfil...
17210.030 s1.9%
28
t.forward_fcn, t.tdata);
17210 s0%
All other lines  0.030 s1.9%
Totals  1.562 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
maketformfunction17211.342 s85.9%
images/private/istformfunction17210.100 s6.4%
iptchecknarginfunction17210 s0%
Self time (built-ins, overhead, etc.)  0.120 s7.7%
Totals  1.562 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function28
Non-code lines (comments, blank lines)22
Code lines (lines that can run)6
Code lines that did run4
Code lines that did not run2
Coverage (did run/can run)66.67 %
Function listing
   time   calls  line
1 function tflip = fliptform( t )
2 %FLIPTFORM Flip input and output roles of TFORM structure.
3 % TFLIP = FLIPTFORM(T) creates a new spatial transformation structure (a
4 % "TFORM struct") by flipping the roles of the inputs and outputs in an
5 % existing TFORM struct.
6 %
7 % Example
8 % -------
9 % T = maketform('affine',[.5 0 0; .5 2 0; 0 0 1]);
10 % T2 = fliptform(T);
11 %
12 % The following are equivalent:
13 % x = tformfwd([-3 7],T)
14 % x = tforminv([-3 7],T2)
15 %
16 % See also MAKETFORM, TFORMFWD, TFORMINV.
17
18 % Copyright 1993-2011 The MathWorks, Inc.
19 % $Revision: 1.8.4.8.2.1 $ $Date: 2011/07/18 00:33:20 $
20
0.03 1721 21 iptchecknargin(1,1,nargin,mfilename);
22
0.15 1721 23 if ~istform(t) || (length(t) ~= 1)
24 error(message('images:fliptform:tMustBeSingleTformStruct'))
25 end
26
1.35 1721 27 tflip = maketform('custom', t.ndims_out, t.ndims_in, t.inverse_fcn, ...
1721 28 t.forward_fcn, t.tdata);