|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
This class encapsulates a Region Of Interest, which may be either horizontal (pixels) or vertical (rows/lines). More...
Public Member Functions | |
| __init__ (self, start, end) | |
| __repr__ (self) | |
| contains (self, value) | |
| crop (self, spectrum) | |
| valid (self) | |
Public Attributes | |
| end = int(end) | |
| int | len = end - start + 1 |
| self.end+1] | start = int(start) |
This class encapsulates a Region Of Interest, which may be either horizontal (pixels) or vertical (rows/lines).
Note that self.end is the LAST valid index, not LAST+1; (start, end) is an open interval, not half-open.
| wasatch.ROI.ROI.__init__ | ( | self, | |
| start, | |||
| end ) |
| wasatch.ROI.ROI.__repr__ | ( | self | ) |
| wasatch.ROI.ROI.contains | ( | self, | |
| value ) |
| wasatch.ROI.ROI.crop | ( | self, | |
| spectrum ) |
| wasatch.ROI.ROI.valid | ( | self | ) |
| wasatch.ROI.ROI.end = int(end) |
| self.end+1] wasatch.ROI.ROI.start = int(start) |