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

error data preprocessing #26

Open
heouchen opened this issue Nov 14, 2024 · 1 comment
Open

error data preprocessing #26

heouchen opened this issue Nov 14, 2024 · 1 comment

Comments

@heouchen
Copy link

There is a problem in the code of blc operation(1_make_mixture_map.py), which will cause an exception:
np.array([127]).astype(np.uint16)-128 --> 65535

so, the blc code of 1_make_mixture_map.py needs to be modified:

such as:
img_1 = cv2.imread(src_path + singleimage + ".tiff", cv2.IMREAD_UNCHANGED) - BLACK_LEVEL
modified:
img_1 = np.clip(cv2.imread(src_path + singleimage + ".tiff", cv2.IMREAD_UNCHANGED).astype(np.int16) - BLACK_LEVEL, 0, SATURATION - BLACK_LEVEL)

@DY112
Copy link
Owner

DY112 commented Jan 6, 2025

Hello, sorry for the late response.
I'll fix this part soon.
Thank you for pointing out!

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