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

It´s related about .ndpi file extension? #138

Open
Yuvi-416 opened this issue Oct 7, 2020 · 0 comments
Open

It´s related about .ndpi file extension? #138

Yuvi-416 opened this issue Oct 7, 2020 · 0 comments

Comments

@Yuvi-416
Copy link

Yuvi-416 commented Oct 7, 2020

Hello everyone,
I have a .ndpi image of around 4 and 5 GB. Each image has 9 level_count (from 1.0 to 256.0) with 3 channel (c) each and 11 slices per channel (Z-stack).
So, it means: 1 count or series has 3 channel with 11 (Z) per slice = total 33 images.
I can visualize all this information using ImageJ or Fiji software. I can also load the image in python using the openslide-python library or bioformats.ImageReader, using it I can see, dimensions, level_dimnesions, and etc.
My questions:

  1. My aim is to extract each count or series with their respective each Channel and each Z slices. So in my case for 1 series —3 channel ---- 11 slices per channel (33). (I want to extract 33 images per each 9 count or series). How can I achieve it using openslide library or a bioformats in python?
  2. I can see (c) channel and (Z-stack) slices notation for these images in an ImageJ software, but I couldn´t find these Z-stack or C-channel notation in python while using openslide or bioformats library. So how to solve this problem?

How to load big image at a once using bioformats?
I have devoted lots of my time to solve this but I didn´t succeed. So any help would be appreciated.
Thank you.

code:
javabridge.start_vm(class_path=bioformats.JARS, max_heap_size="9G")

with bioformats.ImageReader(input_any1) as reader:
x_dim, y_dim, C_channel, Time_series, Z_stack = reader.rdr.getSizeX(), reader.rdr.getSizeY(), reader.rdr.getSizeC(), reader.rdr.getSizeT(), reader.rdr.getSizeZ()
reader.rdr.getImageCount()
reader.rdr.getDimensionOrder()
reader.rdr.getMetadata()

print(x_dim, y_dim)

Any help would be appreciated.

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

1 participant