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

Support for CZI attachments #40

Open
ChiliJohnson opened this issue Apr 29, 2020 · 3 comments
Open

Support for CZI attachments #40

ChiliJohnson opened this issue Apr 29, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ChiliJohnson
Copy link

Is there any planned support for retrieving CZI attachments / is it within the scope of this library to provide access to CZI attachments?

Just being able to retrieve raw attachment bytes would be very helpful. After a cursory glance it appears libczi supports reading raw attachment bytes

@evamaxfield
Copy link
Collaborator

@heeler Would have more insight. I would assume it's probably in the scope of this package personally but wait for his response.

@heeler
Copy link
Member

heeler commented Apr 30, 2020

I'm aware of attachments in the subblocks but I'm not entirely sure what is in them. I believe I could implement something much like the subblock metadata access and pull out attachments. I haven't seen any attachment examples in our institute. Can you explain the use case and do you have an example file you'd be willing to share? Thanks!

@ChiliJohnson
Copy link
Author

Of course! I have some CZI slide scans produced with a Zeiss Axio Scan.Z1 which, in addition to the pixels stored in the body of the CZI, also attaches two additional images: one "preview" image of the entire slide, and one "label" image of the slide label area (where we attach barcodes). Both of these (but the preview image most of all) are useful in determining the identity of the samples which were imaged.

It appears that these attachments live in the ZISRAWATTACH segments, with the names SlidePreview, and Label, and are CZI images themselves. Here's an example image which contains both of these attachments.

I should note that this image contains other attachments in various formats that might be useful to others, but the two that I mentioned are just the two I care about for my use case.

Let me know if you'd like any more context, I'd be happy to discuss!

@heeler heeler added the enhancement New feature or request label Nov 17, 2020
@heeler heeler added this to the 3.0 milestone Nov 17, 2020
@heeler heeler self-assigned this Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants