get_marginal_pix#
- mufasa.master_fitter.get_marginal_pix(lnkmap, lnk_thresh=5, holes_only=False, smallest_struct_size=9)[source]#
Return pixels at the edge of structures with values greater than lnk_thresh, or pixels less than lnk_thresh enclosed within the structures.
- Parameters:
lnkmap (ndarray) – The relative log-likelihood map.
lnk_thresh (float, optional) – The relative log-likelihood threshold for identifying structures (default is 5).
holes_only (bool, optional) – If True, return only the holes surrounded by pixels with values greater than lnk_thresh (default is False).
smallest_struct_size (int, optional) – The minimum size of connected pixels to be considered a good reference structure (default is 9).
- Returns:
A boolean mask indicating the marginal pixels, either at the edges of structures or within enclosed regions.
- Return type:
ndarray