create_mask
- acstools.utils_findsat_mrt.create_mask(image, trail_id, endpoints, widths)
Creates an image mask given a set of trail endpoints and widths.
- Parameters:
image (ndarray) – Input image to be masked.
trail_id (array of int) – ID numbers for each trail. These should be unique.
endpoints (array) – An array containing the endpoints of each trail to contribute to the mask. See
filter_sources()
for format.widths (array) – Widths for each trail.
- Returns:
segment (ndarray) – A segmentation image where each pixel that is part of a masked satellite trail is given a value of the corresponding trail ID.
mask (ndarray) – Boolean mask (1=masked, 0=not masked).