tomodrgn.dose.calculate_dose_mask#
- calculate_dose_mask(dose_weights: ndarray, circular_mask: ndarray) ndarray [source]#
Create mask as intersection of non-zero dose weights and circular mask
- Parameters:
dose_weights – numpy array of weight for each spatial frequency at each cumulative dose, shape (ntilts, D, D), dtype float
circular_mask – numpy array of circle inscribed in image box, shape (D, D), dtype bool
- Returns:
numpy array of pixels contributing positively to SNR, shape (ntilts, nx, nx), dtype bool