Code covered by the BSD License  

Highlights from
FRETSCAL

image thumbnail

FRETSCAL

by

 

For the FRET analysis of images of yeast cells labeled with YFP and CFP.

fgetmaxmove
function fgetmaxmove
%Version 4/3/09 The splash screen where you input the maximum number of
%AOIs per image
global byedit maxmovement fontpics h_getmaxmovefig darkgreen

x = .4; y = .4; w = .2; h = .2;
h_getmaxmovefig = figure('Color', darkgreen, 'units','normalized','ToolBar','none','name','Max movement of AOI','NumberTitle','off','menubar','none','position',[ x y w h ] );
uicontrol( 'units', 'normalized', 'style', 'text', 'string', 'Max movement of AOI between channels', 'position', [ .15 .7 .7 .25], 'background','black','fore','white', 'fontsize', fontpics ); 
byedit   = uicontrol( h_getmaxmovefig, 'units', 'normalized', ...
          'style', 'edit', 'string', num2str( maxmovement ), 'position', [ 1/4 3/6 1/2 1/6 ], 'value', maxmovement, 'background','white','fontsize', fontpics ); 
uicontrol( 'style','pushbutton', 'units', 'normalized',  'string','Done',...
            'position',[ 1/3 1/6 1/3 .15 ], 'callback',@fgetmaxmove2_callback, 'fontsize', fontpics);

function fgetmaxmove2_callback( gcf, eventdata, handles )
global byedit maxmovement h_getmaxmovefig progbarcol

limitstring = get( byedit, 'string' );
maxmovement = str2double( limitstring );
maxmovement = round(maxmovement);
if(isempty(limitstring) == 1)
  maxmovement = 3;
elseif (maxmovement <= 0)
    maxmovement = 0;
end;
close(h_getmaxmovefig)
progbarcol = 'red';
fupdate;

Contact us