image thumbnail

Image Section Generator

by

 

21 May 2009 (Updated )

Image Section Generator grabs cursor-designated linescans from microscope images

UpperRightCurrentWindow.m
%--------------------------------------------------------------------%
%	    Alison Chaiken, sole author and maintainer     			     %
%        ------------------------------------------------------      %
%	    GUI-based Matlab and FEMLAB data analysis, instrument	     %
%	    control, statistical analysis, finite-element modelling,     %
%	    image acquisition and analysis          				     %
%       -------------------------------------------------------      %
%	    alchaiken@gmail.com			                    		     %
%	    http://www.exerciseforthereader.org/         			     %
%	    (001)650-279-5600					                         %
%--------------------------------------------------------------------%

% Move current window to the upper right corner of the screen

% 0 is the root window, that is, the screen
ScreenSize=get(0,'ScreenSize');
% OuterPosition includes title bar and other such decorations while
% Position does not
WindowGeometry=get(gcf,'OuterPosition');
centerX = ScreenSize(3)/2;
centerY = ScreenSize(4)/2;
% parameters are [left bottom width height]
% Buggy: in Fedora 8 and R2009a, not all the way in corner
set(gcf,'OuterPosition',[(ScreenSize(3)-WindowGeometry(3)) ...
    (ScreenSize(4)-WindowGeometry(4)) ...
    WindowGeometry(3) WindowGeometry(4)])

Contact us