This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
imresize | function | 82820 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
260 | params = fixupSizeAndScale(par... | 82820 | 20.729 s | 21.1% |  |
244 | method_arg_idx = findMethodArg... | 82820 | 19.898 s | 20.2% |  |
248 | [params.A, params.map, params.... | 82820 | 19.487 s | 19.8% |  |
252 | [params.kernel, params.kernel_... | 82820 | 13.469 s | 13.7% |  |
246 | first_param_string_idx = findF... | 82820 | 5.808 s | 5.9% |  |
All other lines | | | 18.906 s | 19.2% |  |
Totals | | | 98.296 s | 100% | |
Children (called functions)
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 42 |
Non-code lines (comments, blank lines) | 23 |
Code lines (lines that can run) | 19 |
Code lines that did run | 17 |
Code lines that did not run | 2 |
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.