Defining a Region

Summary:


Contents of This Section


Return to SAOtng Summary User's Guide

Using Regions to Extract Data from Images

Regions provide a means for marking particular areas of an image for further analysis. A common example is to mark a circular region within which counts from an x-ray source are accumulated, and an adjacent annular region within which background counts are accumulated. Net source counts can then be determined by subtracting the background counts, normalized to the source region area, from source counts. In addition to "source" and "background" attributes, regions may have "include/exclude" attributes, meaning include/exclude data in this region in the analysis. For example, an annular region may be described as an "include" circle + an "exclude" circle at the same location but with a smaller radius.

Regions may be created by clicking the left mouse button in the display window, and repositioned by clicking and dragging the left mouse button in the region interior. They may be moved on a fine scale by the use of the l(eft), r(ight), u(p), and d(own) keys (one image pixel per stroke) or the L, R, U, D keys (4 pixels per stroke). Circles and ellipses may be resized by clicking and dragging the left mouse button on the region perimeter. Note that for ellipses, dragging vertically or horizontally changes the aspect ratio of the figure. Rectangles may be resized by clicking and dragging the left mouse button while on a corner of the figure.

Region attributes may be changed with the s(ource), b(ackground), i(nclude), and e(xclude) keys, while the cursor is in the region interior. Different colors correspond to different region attributes - green for "source include", red for "source exclude", blue for "background include", and yellow for "background exclude".

Regions may be saved to files by selecting either Save Regions from the Markers Pull-down Menu.

Region Descriptors

Region definitions are not used within SAOtng itself. Rather, they are communicated to external programs which understand them, either through the X Public Access Mechanism, or via files. Therefore, they must be output or converted to a format with which the external programs are familiar. In particular, SAOtng regions follow the syntax defined in the IRAF/PROS data analysis system. The following descriptors are defined:

In all cases, "+" refers to "include" regions and "-" to "exclude" regions. Coordinates are given in physical pixels of the current image. N.B. The origin of the pixel coordinate system is at (1,1), following IRAF conventions.


Return to Main SAOtng Help Page
Last Updated May 26, 1995