This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
imrotate | function | 1721 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
27 | tflip = maketform('custom', t.... | 1721 | 1.352 s | 86.5% |  |
23 | if ~istform(t) || (length(t) ~... | 1721 | 0.150 s | 9.6% |  |
21 | iptchecknargin(1,1,nargin,mfil... | 1721 | 0.030 s | 1.9% |  |
28 | t.forward_fcn, t.tdata); | 1721 | 0 s | 0% |  |
All other lines | | | 0.030 s | 1.9% |  |
Totals | | | 1.562 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
maketform | function | 1721 | 1.342 s | 85.9% |  |
images/private/istform | function | 1721 | 0.100 s | 6.4% |  |
iptchecknargin | function | 1721 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.120 s | 7.7% |  |
Totals | | | 1.562 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 28 |
Non-code lines (comments, blank lines) | 22 |
Code lines (lines that can run) | 6 |
Code lines that did run | 4 |
Code lines that did not run | 2 |
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);