darfix.core.roi.apply_3D_ROI#
- darfix.core.roi.apply_3D_ROI(data, origin=None, size=None, center=None)[source]#
Function that computes the ROI of each image in stack of images.
- Parameters:
data (array_like) – The stack of images
origin (Union[2d vector, None]) – Origin of the roi
size (2d-vector) – [Height, Width] of the roi.
center (Union[2d vector, None]) – Center of the roi
- Returns:
ndarray
- Raises:
AssertionError, ValueError