This is a static copy of a profile report

Home

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 NameFunction TypeCalls
imresizefunction82820
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
197
if isInputIndexed(params) &...
828202.483 s73.8%
All other lines  0.881 s26.2%
Totals  3.365 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
imresize>isInputIndexedsubfunction828201.422 s42.3%
Self time (built-ins, overhead, etc.)  1.943 s57.7%
Totals  3.365 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function11
Non-code lines (comments, blank lines)8
Code lines (lines that can run)3
Code lines that did run1
Code lines that did not run2
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.