RectangularROI¶
- class glue.core.roi.RectangularROI(xmin=None, xmax=None, ymin=None, ymax=None)[source]¶
Bases:
glue.core.roi.Roi
A 2D rectangular region of interest.
Methods Summary
center
()Return the (x,y) coordinates of the ROI center
contains
(x, y)Test whether a set of (x,y) points falls within the region of interest
corner
()defined
()Returns whether or not the subset is properly defined
height
()move_to
(x, y)Translate the ROI to a center of (x, y)
reset
()Reset the rectangular region.
Returns a tuple of x and y points, approximating the ROI as a polygon.
transformed
([xfunc, yfunc])A transformed version of the ROI
transpose
([copy])update_limits
(xmin, ymin, xmax, ymax)Update the limits of the rectangle
width
()Methods Documentation