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 (numpy.ndarray) – The stack of images

  • origin (TwoDVector | None) – Origin of the roi

  • size (TwoDVector | None) – [Height, Width] of the roi.

  • center (TwoDVector | None) – Center of the roi

  • data

  • size

Raises:

AssertionError, ValueError

Return type:

numpy.ndarray