This is a static copy of a profile report

Home

imrotate>getOutputBound (1721 calls, 1.292 sec)
Generated 05-Nov-2014 07:53:11 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/imrotate.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
185
hiB = ceil(max(abs(tformfwd([l...
17211.182 s91.5%
186
loB = -hiB;
17210.040 s3.1%
184
if strcmpi(bbox, 'loose')  % D...
17210.020 s1.6%
182
hiA = (twod_size-1)/2;
17210.020 s1.6%
187
outputSize = hiB - loB + 1;
17210 s0%
All other lines  0.030 s2.3%
Totals  1.292 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
tformfwdfunction17210.981 s76.0%
Self time (built-ins, overhead, etc.)  0.310 s24.0%
Totals  1.292 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function14
Non-code lines (comments, blank lines)3
Code lines (lines that can run)11
Code lines that did run6
Code lines that did not run5
Coverage (did run/can run)54.55 %
Function listing
   time   calls  line
179 function [loA,hiA,loB,hiB,outputSize] = getOutputBound(rotate,twod_size,bbox)
180
181 % Coordinates from center of A
0.02 1721 182 hiA = (twod_size-1)/2;
1721 183 loA = -hiA;
0.02 1721 184 if strcmpi(bbox, 'loose') % Determine limits for rotated image
1.18 1721 185 hiB = ceil(max(abs(tformfwd([loA(1) hiA(2); hiA(1) hiA(2)],rotate)))/2)*2;
0.04 1721 186 loB = -hiB;
1721 187 outputSize = hiB - loB + 1;
188 else % Cropped image
189 hiB = hiA;
190 loB = loA;
191 outputSize = twod_size;
192 end

Other subfunctions in this file are not included in this listing.