brightest_island(n_islands, island_labels, image)¶
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.
- n_islands: int
Total number of islands, first return value of
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
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.