Closed fazamani closed 4 years ago
Also, this issue should address the problem where the normalized image is a constant image resulting in diving by zero, and saving NaNs to disk. We should:
also addressed within this issue is the following: mask/label in the function below should be normalized wrt n_classes:
The way we normalize the image before saving to disk,
is relative to each image, which causes the following
labels are changing, but images are "mapped" to the same color! This might be only relevant to data, in which all pixel values in each segmented image are taking two unique values, but overall in the volume we have more unique values for the pixels.
Hence, the normalization should be wrt a global range in the volume of data.