ESA-PhiLab/eo4ai

Mask resizing missing values

Closed this issue · 2 comments

BandMaskResizer operation leaves some values in the mask empty after upscaling. The mode currently used is cv2.INTER_NEAREST, on the one-hot encoded mask.

Instead, we need to argmax the mask to be a single band, THEN resize, and then convert back.

Fix made. Will now write unit tests for resizers and push to master once done.