This is a static copy of a profile reportHome
ml_rotate (1721 calls, 44.992 sec)
Generated 05-Nov-2014 07:53:16 using cpu time.
function in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/2D/tztoolbox/ml_rotate.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 |
33 | img2=imrotate(img,theta,'bilin... | 1721 | 44.962 s | 99.9% |  |
34 | end | 1721 | 0.010 s | 0.0% |  |
32 | else | 1721 | 0 s | 0% |  |
30 | if theta==0 | 1721 | 0 s | 0% |  |
All other lines | | | 0.020 s | 0.0% |  |
Totals | | | 44.992 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
imrotate | function | 1721 | 44.942 s | 99.9% |  |
Self time (built-ins, overhead, etc.) | | | 0.050 s | 0.1% |  |
Totals | | | 44.992 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 34 |
Non-code lines (comments, blank lines) | 29 |
Code lines (lines that can run) | 5 |
Code lines that did run | 4 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 80.00 % |
Function listing
time calls line
1 function img2=ml_rotate(img,theta)
2
3 %TZ_ROATE Rotate image
4 % IMG2 = TZ_ROTATE(IMG,THETA) rotates the image IMG by THETA degrees in a
5 % counter-clockwise direction, using the bilinear method.
6 %
7 % See also IMROTATE
8
9 % Copyright (C) 2006 Murphy Lab
10 % Carnegie Mellon University
11 %
12 % This program is free software; you can redistribute it and/or modify
13 % it under the terms of the GNU General Public License as published
14 % by the Free Software Foundation; either version 2 of the License,
15 % or (at your option) any later version.
16 %
17 % This program is distributed in the hope that it will be useful, but
18 % WITHOUT ANY WARRANTY; without even the implied warranty of
19 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 % General Public License for more details.
21 %
22 % You should have received a copy of the GNU General Public License
23 % along with this program; if not, write to the Free Software
24 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 % 02110-1301, USA.
26 %
27 % For additional information visit http://murphylab.web.cmu.edu or
28 % send email to murphy@cmu.edu
29
1721 30 if theta==0
31 img2 = img;
1721 32 else
44.96 1721 33 img2=imrotate(img,theta,'bilinear');
0.01 1721 34 end