Open grapemaidaa opened 8 months ago
In quality_metrics.py, you can set the max_p
into 255, and then you will get normal value.
for example:
def rmse(org_img: np.ndarray, pred_img: np.ndarray, max_p: int = 4095)
change into:
def rmse(org_img: np.ndarray, pred_img: np.ndarray, max_p: int = 255)
12bits represent physical units such as spectral radiance for instances in case of SPOT satellites. So in your case if you are working with RGB images, you can set it, as mentioned above, to 255.
the value is set to 12 bits (4095) I can't understand it. Where should I set this in the code?