Frames.landmask(dilate_iter=10, samples=15)[source]#

Attempt to mask out land from water, by assuming that the time standard deviation over mean of land is much higher than that of water. An automatic threshold using Otsu thresholding is used to separate and a dilation operation is used to make the land mask slightly larger than the exact defined pixels.

  • dilate_iter (int, optional) – number of dilation iterations to use, to dilate land mask (Default value = 10)

  • samples (int, optional) – amount of samples to retrieve from frames for estimating standard deviation and mean. Set to a lower number to speed up calculation (Default value = 15)


da – filtered frames

Return type: