largest_island¶
-
ctapipe.image.
largest_island
(island_labels)[source]¶ Find the biggest island and filter it from the image.
This function takes a list of islands in an image and isolates the largest one for later parametrization.
- Parameters
- island_labelsarray
Flattened array containing a list of labelled islands from a cleaned image. Second value returned by the function ‘number_of_islands’.
- Returns
- maskarray
A boolean mask created from the input labels and filtered for the largest island. If no islands survived the cleaning the array is all False.