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.

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

x = .4; y = .4; w = .2; h = .2;
h_getmaximumpeaksfig = figure('Color', darkgreen, 'units','normalized','ToolBar','none','name','Max number of AOIs per Tiff','NumberTitle','off','menubar','none','position',[ x y w h ] );
uicontrol( 'units', 'normalized', 'style', 'text', 'string', 'Maximum AOIs per tif', 'position', [ .15 .8 .7 .15], 'background','black','fore','white', 'fontsize', fontpics ); 
byedit   = uicontrol( h_getmaximumpeaksfig, 'units', 'normalized', ...
          'style', 'edit', 'string', num2str( maximumpeaks ), 'position', [ 1/4 3/6 1/2 1/6 ], 'value', maximumpeaks, 'background','white','fontsize', fontpics ); 
uicontrol( 'style','pushbutton', 'units', 'normalized',  'string','Done',...
            'position',[ 1/3 1/6 1/3 .15 ], 'callback',@fgetmaximumpeaks2_callback, 'fontsize', fontpics);

function fgetmaximumpeaks2_callback( gcf, eventdata, handles )
global byedit maximumpeaks h_getmaximumpeaksfig progbarcol

limitstring = get( byedit, 'string' );
maximumpeaks = str2double( limitstring );
if(isempty(limitstring) == 1)
  maximumpeaks = 10;
elseif (maximumpeaks <= 1)
    maximumpeaks =1;
end;
close(h_getmaximumpeaksfig)
progbarcol = 'red';
fupdate;

Contact us