brightest_island#
- ctapipe.image.brightest_island(n_islands, island_labels, image)[source]#
Find the brightest island and filter it from the image.
This function takes a list of islands in an image and the image itself and isolates brightest island for later parametrization.
- Parameters:
- n_islands: int
Total number of islands, first return value of
number_of_islands
- island_labelsarray
Flattened array containing a list of labelled islands from a cleaned image. Second value returned by the function ‘number_of_islands’.
- image: array
The image array
- Returns:
- maskarray
A boolean mask created from the input labels and filtered for the brightest island. If no islands survived the cleaning the array is all False.