Code covered by the BSD License  

Highlights from
Mia 2.4

image thumbnail

Mia 2.4

by

 

02 Apr 2004 (Updated )

Medical Image Analysis GUI.

isocontrols(fig, onoff)
function isocontrols(fig, onoff)
% Set up FIG to have an ISO surface controller on the bottom.
% ONOFF indicates if the controller is being turned ON or OFF
  
  d = getappdata(fig, 'sliceomatic');
  
  if onoff
    lim=[min(min(min(d.data))) max(max(max(d.data)))];
  
    set(d.axiso,'handlevisibility','on');
    set(fig,'currentaxes',d.axiso);
    set(d.axiso, 'xlim',lim,...
                 'ylim',[1 5],...
                 'clim',lim);
    image('parent',d.axiso,'cdata',1:64,'cdatamapping','direct',...
          'xdata',lim,'ydata',[0 5],...
          'alphadata',.6, ...
          'hittest','off');
    title('Iso Surface Controller');
    set(d.axiso,'handlevisibility','off');

  else
    % Turn off the controller
    
    delete(findobj(d.axis,'type','image'));

  end

Contact us