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.

questiondialog()
function questiondialog()
%Version 4/3/09 During the walkthrough, this puts up the dialog box asking
%whether the image file is a keeper.
global  toprocess accepted rejected fontpics h_walkans lightgreen filenamebase

x = .01; y = .72; w = .34; h = .16; spacing = .2;
titlestring = sprintf('%s',filenamebase);
qstring = sprintf('Is it a keeper?');
statusstring = sprintf( '%d AOIs left to inspect.\n Currently %d accepted and %d rejected.', (toprocess-accepted-rejected), accepted, rejected );
h_walkans = figure('Color', lightgreen, 'units', 'normalized', 'menubar', 'none', 'ToolBar', 'none', ...
    'name', 'Inspection choice', 'NumberTitle', 'off', 'position', [ x y w h ], 'resize', 'off' );
uicontrol( h_walkans, 'units', 'normalized', 'style', 'text', ...
    'string', titlestring, 'position', [ 0 .85 1 .15 ], 'background',lightgreen,'fontsize', fontpics );
uicontrol( h_walkans, 'units', 'normalized', 'style', 'text', ...
    'string', statusstring, 'position', [ 0 .55 1 .25 ],'background',lightgreen, 'fontsize', fontpics );
uicontrol( h_walkans, 'units', 'normalized', 'style', 'text', ...
    'string', qstring, 'position', [ 0 .35 1 .15 ], 'background',lightgreen,'fontsize', fontpics +2 );
h_pos = uicontrol( h_walkans, 'style','pushbutton', 'units', 'normalized', 'string','Yes',...
    'position',[ .1 .05 .2 spacing ], 'callback', 'walkans_callbackpos', 'fontsize', fontpics );
uicontrol( h_walkans, 'style','pushbutton', 'units', 'normalized', 'string','No',...
    'position',[ .4 .05 .2 spacing ], 'callback', 'walkans_callbackneg', 'fontsize', fontpics );
uicontrol( h_walkans, 'style','pushbutton', 'units', 'normalized', 'string','Quit',...
    'position',[ .7 .05 .2 spacing ], 'callback', 'walkans_callbackquit', 'fontsize', fontpics );
uiwait
close( gcf );

Contact us