This is a static copy of a profile reportHome
imuitools\private\basicImageDisplay (1 call, 0.016 sec)
Generated 15-Mar-2007 12:02:03 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\images\imuitools\private\basicImageDisplay.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
imshow | M-function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
9 | hh = image(xdata,ydata,cdata, ... | 1 | 0.016 s | 100.0% |  |
39 | if isIndexedUint16Image &&... | 1 | 0 s | 0% |  |
35 | isIndexedUint16Image = strcmpi... | 1 | 0 s | 0% |  |
33 | end | 1 | 0 s | 0% |  |
32 | set(ax_handle, 'CLim', clim); | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.016 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
newplot | M-function | 1 | 0.016 s | 100.0% |  |
iptgetpref | M-function | 1 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.016 s | 100% | |
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 41 |
Non-code lines (comments, blank lines) | 28 |
Code lines (lines that can run) | 13 |
Code lines that did run | 9 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 69.23 % |
Function listing
time calls line
1 function hh = basicImageDisplay(fig_handle,ax_handle,...
2 cdata, cdatamapping, clim, map, ...
3 xdata, ydata)
4 %basicImageDisplay Display image for IMSHOW and IMVIEW.
5
6 % Copyright 1993-2004 The MathWorks, Inc.
7 % $Revision: 1.1.8.2 $ $Date: 2005/03/31 16:33:17 $
8
0.02 1 9 hh = image(xdata,ydata,cdata, ...
10 'BusyAction', 'cancel', ...
11 'Parent', ax_handle, ...
12 'CDataMapping', cdatamapping, ...
13 'Interruptible', 'off');
14
15 % Set axes and figure properties if necessary to display the
16 % image object correctly.
1 17 show_axes = iptgetpref('ImshowAxesVisible');
1 18 set(ax_handle, ...
19 'YDir','reverse',...
20 'TickDir', 'out', ...
21 'XGrid', 'off', ...
22 'YGrid', 'off', ...
23 'DataAspectRatio', [1 1 1], ...
24 'PlotBoxAspectRatioMode', 'auto', ...
25 'Visible', show_axes);
26
1 27 if (~isempty(map))
28 set(fig_handle, 'Colormap', map);
29 end
30
1 31 if (~isempty(clim))
1 32 set(ax_handle, 'CLim', clim);
1 33 end
34
1 35 isIndexedUint16Image = strcmpi(get(hh,'CDataMapping'),'direct') && size(map,1) > 256;
36
37 % This is to workaround the problem of indexed image showing up black on
38 % windows. G208494
1 39 if isIndexedUint16Image && ispc
40 set(fig_handle,'Renderer','Zbuffer');
41 end