This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
imrotate | function | 1721 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
185 | hiB = ceil(max(abs(tformfwd([l... | 1721 | 1.182 s | 91.5% |  |
186 | loB = -hiB; | 1721 | 0.040 s | 3.1% |  |
184 | if strcmpi(bbox, 'loose') % D... | 1721 | 0.020 s | 1.6% |  |
182 | hiA = (twod_size-1)/2; | 1721 | 0.020 s | 1.6% |  |
187 | outputSize = hiB - loB + 1; | 1721 | 0 s | 0% |  |
All other lines | | | 0.030 s | 2.3% |  |
Totals | | | 1.292 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
tformfwd | function | 1721 | 0.981 s | 76.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.310 s | 24.0% |  |
Totals | | | 1.292 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 14 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 11 |
Code lines that did run | 6 |
Code lines that did not run | 5 |
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.