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

The first step, tiff image generation problem #25

Open
xiaosanxiao13 opened this issue Nov 4, 2024 · 1 comment
Open

The first step, tiff image generation problem #25

xiaosanxiao13 opened this issue Nov 4, 2024 · 1 comment

Comments

@xiaosanxiao13
Copy link

When I used 0_cvt2tiff.py, I found that all the generated tiff images were almost pure black. After experiments, I found that cmd = [DCRAW_PATH, "-h", "-D", "-4", "-T ", full_path], what I want to know is, is there any problem with the pure black tiff image generated in this way? Is this the case for everyone?

@DY112
Copy link
Owner

DY112 commented Nov 7, 2024

Hello, thank you for your interest in my work
The converted TIFF images are 16bit uncompressed and contain raw data.
The maximum value of RAW data depends on the camera, but Galaxy is 1024 (10bit) and Sony or Nikon is 14bit. Therefore, the thumbnails of TIFF images may look black. You can rescale them with MAX value or gamma correction to visualise them well.

If you open the black tiff image with the cv2.imread function using the cv2.IMREAD_UNCHANGED tag, you will see that the value is not zero.

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

2 participants