title: How to resize image segmentation mask?
body: <p>I have a binary mask for each image, with each mask pixel having value of either 0 or 255. Now because my image segmentation needs images of fixed size, I will have to resize the images and the masks. However, when I resize the image, then there will be places in the mask where the value is more than 0 but smaller than 255. How do I know which one to keep ? Because the library demands that there be only 0 or 255. Please help me, thank you very much.</p>