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

How to Reposition and Reassemble Image Patches After Grid Extraction #701

Closed
6rid9e opened this issue May 17, 2024 · 2 comments
Closed

How to Reposition and Reassemble Image Patches After Grid Extraction #701

6rid9e opened this issue May 17, 2024 · 2 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@6rid9e
Copy link

6rid9e commented May 17, 2024

Hello, thanks for your contributions,after using grid extraction to divide the image into patches, I need to process the patches and finally recombine them into a whole slide image (WSI). Could you please help me how to deal with the code to correctly position these patches back into their original places? Thank you for your help.

@6rid9e 6rid9e added help wanted Extra attention is needed question Further information is requested labels May 17, 2024
@alessiamarcolini
Copy link
Collaborator

Hi @6rid9e,

you can find the extraction coordinates of the tile in the filename itself, in the format {prefix}tile_{tiles_counter}_level{level}_{x_ul_wsi}-{y_ul_wsi}-{x_br_wsi}-{y_br_wsi}{suffix}.
Please consider that these coordinates are referring to the size of the WSI at level 0.

Moreover, if you used the GridTiler, the tiles are extracted and saved in order, row by row, so it should be easy to recombine the tiles afterwards.

@6rid9e
Copy link
Author

6rid9e commented May 24, 2024

Thanks a lot!!:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants