Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's "the value is set to 12 bits (4095) "mean? #64

Open
grapemaidaa opened this issue Mar 13, 2024 · 2 comments
Open

What's "the value is set to 12 bits (4095) "mean? #64

grapemaidaa opened this issue Mar 13, 2024 · 2 comments

Comments

@grapemaidaa
Copy link

the value is set to 12 bits (4095)
I can't understand it. Where should I set this in the code?

@grapemaidaa grapemaidaa changed the title What's the value is set to 12 bits (4095) mean? What's "the value is set to 12 bits (4095) "mean? Mar 13, 2024
@kiki81524
Copy link

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)

@nekhtiari
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants