Code covered by the BSD License  

Highlights from
FRETSCAL

image thumbnail

FRETSCAL

by

Eric Muller

 

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

fgetintensitylimit
function fgetintensitylimit
%Version 4/3/09 This yields the splash window where one decides what
%should be the minimum peak intensity, relative to the maximum, for the
%peaks found by fret.m.

global  byedit intensitylimit fontpics m5f m5b h_getintensitylimitfig darkgreen

x = .3; y = .4; w = .4; h = .2;
h_getintensitylimitfig = figure('Color', darkgreen, 'units','normalized','name','Minimum Peak Intensity','ToolBar','none','NumberTitle','off','menubar','none','position',[ x y w h ] );
uicontrol( 'units', 'normalized', 'style', 'text', 'string', 'The required minimum intensity of an AOI, as a fraction of the maximum AOI intensity found in the image', 'position', [ .1 .7 .8 .25 ],'background','black','fore','white', 'fontsize', fontpics ); 
byedit  = uicontrol( h_getintensitylimitfig, 'units', 'normalized', ...
          'style','edit', 'string', num2str( intensitylimit ), 'fore', m5f, 'back', m5b,'position', [ .4 .4 .2 .15 ], 'fontsize', fontpics ); %'value', intensitylimit, 'fore', m5f, 'back', m5b,
uicontrol( 'style','pushbutton', 'units', 'normalized',  'string','Done',...
            'position',[ .4 1/12 .2 .15 ], 'callback',@fgetintensitylimit2_callback,'fontsize', fontpics);


function fgetintensitylimit2_callback( gcf, eventdata, handles )
global  byedit h_getintensitylimitfig intensitylimit progbarcol
  x = .2; y = .2; w = .5; h = .7; spacing = .1;
limitstring = get( byedit, 'string' );
intensitylimit = str2double( limitstring );
if(intensitylimit >= 1)
  intensitylimit = 1;
elseif (intensitylimit <= 0)
    intensitylimit = .5;
elseif(isempty(limitstring == 1))
  intensitylimit = .5;
end
close(h_getintensitylimitfig);
progbarcol = 'red';
fupdate;

Contact us