This is a static copy of a profile report

Home

imresize>deriveScaleFromSize (82820 calls, 4.126 sec)
Generated 05-Nov-2014 07:53:38 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/imresize.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
imresize>fixupSizeAndScalesubfunction82820
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
718
if ~isempty(params.size_dim)
828201.222 s29.6%
728
scale = params.output_size ./ ...
828200.641 s15.5%
727
A_2d_size = [size(params.A, 1)...
828200.591 s14.3%
729
end
828200.451 s10.9%
726
else
828200.280 s6.8%
All other lines  0.941 s22.8%
Totals  4.126 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function15
Non-code lines (comments, blank lines)8
Code lines (lines that can run)7
Code lines that did run5
Code lines that did not run2
Coverage (did run/can run)71.43 %
Function listing
   time   calls  line
715 function scale = deriveScaleFromSize(params)
716 % Determine the scale factor from the specified output size.
717
1.22 82820 718 if ~isempty(params.size_dim)
719 % User specified output size in only one dimension. The other was
720 % automatically computed. The scale factor should be calculated
721 % only from the dimension specified, which is params.size_dim.
722
723 scale = params.output_size(params.size_dim) / size(params.A, params.size_dim);
724 scale = [scale scale];
725
0.28 82820 726 else
0.59 82820 727 A_2d_size = [size(params.A, 1) size(params.A, 2)];
0.64 82820 728 scale = params.output_size ./ A_2d_size;
0.45 82820 729 end

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