Coder Social home page Coder Social logo

Comments (3)

jacob-rosenthal avatar jacob-rosenthal commented on July 4, 2024

The image shape printed in the SlideData object is the shape of the largest image level.
It looks like your image has 23 levels, so I guess one of those is probably the full-resolution image.
You should be able to check the shapes of each level's image by looking at my_zeiss_zvi.slide.shape_list to help find the one that you are looking for.
Hope this helps!

from pathml.

RYY0722 avatar RYY0722 commented on July 4, 2024

Thanks a lot for your reply!

  • But I am wondering whether it can read the full-resolution image since the .vsi file is of only 2.72MB. Should I specify the associated .ets file?
  • How to read the desired image layer or the desired shape? Since when I called my_zeiss_zvi.slide.generate_tiles(), it only reads the label image instead of the HE image.
  • How to handle large image file?
    My .ets file is of 1.76GB and the .vsi file is of 2.72 MB. When I called my_zeiss_zvi.slide.get_thumbnail() or extract_region((0,0), my_zeiss_zvi.slide.get_image_shape()), the following error occurred.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/yuyan/virtual_envs/torch38/lib/python3.8/site-packages/pathml/core/slide_backends.py", line 516, in get_thumbnail
    raise Exception(
Exception: Java arrays allocate maximum 32 bits (~2GB). Image size is (61115, 130754)

Would you give some suggestions regarding this situation?

Thanks again!

from pathml.

jacob-rosenthal avatar jacob-rosenthal commented on July 4, 2024
  • We rely on bioformats to know how to handle that image format, including how to handle the data being split into multiple files. I think it should work but I haven't ever tried with that particular file format before so I don't know
  • You should be able to pass level argument to generate_tiles() to specify which level to use
  • Instead of trying to load the entire image into memory, use the tile generator and process the image at tile-level. If you really want to have the full-resolution image in memory, then use the tile generator to extract the tiles into numpy arrays and then stitch the numpy arrays together into the full array.

from pathml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.