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

DEGA-22-clahe-image-preprocessing #39

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

huanlity
Copy link
Contributor

No description provided.

@huanlity
Copy link
Contributor Author

huanlity commented Nov 18, 2024

Current implementation does not use CLAHE but skipped writing tiff file, png conversion, and load image from memory instead of file when creating pyramids.

Example code:
img = imread(f'{data_dir_region}/mosaic_DAPI_z1.tif')
img_8bit = dega.pre.check_and_convert_16_to_8_bit(img)
dega.pre.make_deepzoom_pyramid(img_8bit, f"{path_landscape_files_region}/pyramid_images", 'dapi', suffix=".webp[Q=100]")

before:
Screenshot 2024-11-18 at 11 49 45 AM
after:
Screenshot 2024-11-18 at 1 32 56 PM

@huanlity huanlity requested a review from cornhundred November 20, 2024 00:24
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

Successfully merging this pull request may close these issues.

2 participants