opera-adt / DSWX-SAR

Dynamic Surface Water Extent from Synthetic Aperture Radar
Apache License 2.0
10 stars 6 forks source link

Fix bug in 'masking ancillary' step #33

Closed oberonia78 closed 9 months ago

oberonia78 commented 9 months ago

This PR fixes bugs in the masking ancillary step. When cv2.connectedComponentsWithStats is applied, the number of the components could be larger than 65504. Then, the remaining components could have inf value, then the error affects the remaining step.