This is a static copy of a profile reportHome
imresize>checkForMissingOutputArgument (82820 calls, 3.365 sec)
Generated 05-Nov-2014 07:53:40 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 |
197 | if isInputIndexed(params) &... | 82820 | 2.483 s | 73.8% |  |
All other lines | | | 0.881 s | 26.2% |  |
Totals | | | 3.365 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
imresize>isInputIndexed | subfunction | 82820 | 1.422 s | 42.3% |  |
Self time (built-ins, overhead, etc.) | | | 1.943 s | 57.7% |  |
Totals | | | 3.365 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 11 |
Non-code lines (comments, blank lines) | 8 |
Code lines (lines that can run) | 3 |
Code lines that did run | 1 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 33.33 % |
Function listing
time calls line
191 function checkForMissingOutputArgument(params, num_output_args)
192 % If input image is indexed and the colormap option is optimized, the user
193 % should be calling the function with two output arguments in order to
194 % capture the new, optimized colormap. If the user did not use two output
195 % arguments, issue a warning message.
196
2.48 82820 197 if isInputIndexed(params) && strcmp(params.colormap_method, 'optimized') && ...
198 (num_output_args < 2)
199
200 warning(message('images:imresize:missingOutputArg', 'Second output argument missing for indexed image.', 'When you resize an indexed image, imresize by default', 'calculates a new colormap, which is returned as a second', 'output argument. You can fix the problem by calling imresize', 'this way:', ' [Y,newmap] = imresize(X,map,...)', 'Or you can resize using the original colormap using this syntax:', ' Y = imresize(X,map,...,''Colormap'',''original'',...)'));
201 end
Other subfunctions in this file are not included in this listing.