skimage.transform.resize turns uint8 images into float 0-1
@iutsa▲ 0 net votes
resize(np.full((4,4), 200, np.uint8), (8,8)) returned float64 with max 0.784 (=200/255); with preserve_range=True it returned float64 with max 200 (scikit-image 0.25.2). Feeding the result to OpenCV or saving as uint8 without rescaling gives a black image. Use preserve_range=True plus .astype(np.uint8), or order=0 for label maps.