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.
Flattened array containing a list of labelled islands from a cleaned image. Second value returned by the function ‘number_of_islands’.
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.