


[select, coord] = getroi(array, dialtext, tol) Select and return region of interest
[select, coord] = getroi(array, dialtext, tol) GUI, region of interest select
Select and return image region of interest (ROI) via a GUI window and
'right-button-mouse' operation. If the mouse button is clicked and
released without movement, the entire displayed image will be selected.
array = input image array(nlin, npix [, ncolor])
dialtext = (optional) string for title of dialog box (e.g. data id)
tol = tolerance in pixels less than which whole image is selected
default = 10 (simple click selects all)
= negative If negative, the ROI rectangle is taken as a single
line or column. If the smaller dimension of ROI is less than
abs(tol), then that dimension is taken as 1.
select (double) - output ROI as an array(newlin, newpix[, ncolor])
coord is list of coordinates of ROI (upperleft(x,y),lowerright(x,y))
Author: Peter Burns, pdburns@ieee.org
copyright 2004 by Peter D. Burns. All rights reserved.
******************************************************************