astra.contrib.thecannon.utils.masks

Module Contents

Functions

create_mask(dispersion, regions) Return a boolean mask given a structured list of (start, end) regions.
astra.contrib.thecannon.utils.masks.create_mask(dispersion, regions)

Return a boolean mask given a structured list of (start, end) regions.

Parameters:
  • dispersion – An array of dispersion values.
  • regions – A list of two-length tuples containing the (start, end) points of a region.
Returns:

A boolean mask indicating if the pixels in the dispersion array are within the regions.