pysdic.Image.roi#

property Image.roi: Tuple[int, int, int, int] | None#

[Get] The region of interest (ROI) in the image.

The ROI is defined as a tuple (x, y, width, height) in pixels: it contains the columns x, ..., x + width - 1 and the rows y, ..., y + height - 1. Points between these pixels (bounds included) can be evaluated. If None, the entire image is used.

See also

with_settings() to get an image with another ROI (sharing the data).

Returns:

The region of interest (ROI) as a tuple (x, y, width, height), or None for the entire image.

Return type:

Optional[Tuple[int, int, int, int]]