GeoscienceAustralia/dea-coastlines

Implemented morphological filter to improve false positive cloud detection

robbibt opened this issue · 1 comments

Morphological operators can be used to remove false positive cloud detection along long, narrow bright sandy beaches. For example:

image

This recipe makes the largest difference to overall accuracy:

# Close mask to remove small holes in cloud, open mask to     
# remove narrow false positive cloud, then dilate    
mask = odc.algo.binary_closing(mask, 2)    
mask_cleaned = odc.algo.mask_cleanup(mask, r=(10, 10))