This is a static copy of a profile report

Home

imresize>parseInputs (82820 calls, 98.296 sec)
Generated 05-Nov-2014 07:52:44 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
imresizefunction82820
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
260
params = fixupSizeAndScale(par...
8282020.729 s21.1%
244
method_arg_idx = findMethodArg...
8282019.898 s20.2%
248
[params.A, params.map, params....
8282019.487 s19.8%
252
[params.kernel, params.kernel_...
8282013.469 s13.7%
246
first_param_string_idx = findF...
828205.808 s5.9%
All other lines  18.906 s19.2%
Totals  98.296 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
imresize>fixupSizeAndScalesubfunction8282019.587 s19.9%
imresize>findMethodArgsubfunction8282018.395 s18.7%
imresize>parsePreMethodArgssubfunction8282017.034 s17.3%
imresize>parseMethodArgsubfunction8282011.646 s11.8%
imresize>findFirstParamStringsubfunction828204.707 s4.8%
imresize>warnIfPostMethodArgssubfunction828203.325 s3.4%
imresize>parseParamValuePairssubfunction828202.874 s2.9%
iptchecknarginfunction828202.003 s2.0%
Self time (built-ins, overhead, etc.)  18.726 s19.1%
Totals  98.296 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function42
Non-code lines (comments, blank lines)23
Code lines (lines that can run)19
Code lines that did run17
Code lines that did not run2
Coverage (did run/can run)89.47 %
Function listing
   time   calls  line
227 function params = parseInputs(varargin)
228 % Parse the input arguments, returning the resulting set of parameters
229 % as a struct.
230
3.66 82820 231 iptchecknargin(1, Inf, nargin, mfilename);
232
233 % Set parameter defaults.
1.20 82820 234 params.kernel = @cubic;
0.49 82820 235 params.kernel_width = 4;
0.66 82820 236 params.antialiasing = [];
0.60 82820 237 params.colormap_method = 'optimized';
0.45 82820 238 params.dither_option = 'dither';
0.87 82820 239 params.size_dim = []; % If user specifies NaN for an output size, this
240 % parameter indicates the dimension for which the
241 % size was specified.
242
243
19.90 82820 244 method_arg_idx = findMethodArg(varargin{:});
245
5.81 82820 246 first_param_string_idx = findFirstParamString(varargin, method_arg_idx);
247
19.49 82820 248 [params.A, params.map, params.scale, params.output_size] = ...
249 parsePreMethodArgs(varargin, method_arg_idx, first_param_string_idx);
250
0.57 82820 251 if ~isempty(method_arg_idx)
13.47 82820 252 [params.kernel, params.kernel_width, params.antialiasing] = ...
253 parseMethodArg(varargin{method_arg_idx});
0.41 82820 254 end
255
4.47 82820 256 warnIfPostMethodArgs(varargin, method_arg_idx, first_param_string_idx);
257
3.74 82820 258 params = parseParamValuePairs(params, varargin, first_param_string_idx);
259
20.73 82820 260 params = fixupSizeAndScale(params);
261
0.52 82820 262 if isempty(params.antialiasing)
263 % If params.antialiasing is empty here, that means the user did not
264 % explicitly specify a method or the Antialiasing parameter. The
265 % default interpolation method is bicubic, for which the default
266 % antialiasing is true.
267 params.antialiasing = true;
268 end

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