Home > . > getroi.m

getroi

PURPOSE ^

[select, coord] = getroi(array, dialtext, tol) Select and return region of interest

SYNOPSIS ^

function [select, coord] = getroi(array1, dialtext, tol)

DESCRIPTION ^

 [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.
******************************************************************

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 27-Jul-2009 13:44:16 by m2html © 2003