Comments (3)
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.
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 calledmy_zeiss_zvi.slide.get_thumbnail()
orextract_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.
- 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 togenerate_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)
- How to implement HoVer-Net Model in TIAToolBox?
- Support GPUs on Docker installation
- preprocessing on mrxs file get h5 file full of 0 HOT 6
- necrotic tissue detection for HE and multiplex imaging
- Need assistance with running Pathml package via Colab or Docker and resolving errors HOT 6
- Tests are failing HOT 2
- Error with spams package in vahadane stain normalisation with StainNormalizationHE() HOT 2
- Make a smaller docker image
- Reading WSI with .tif and ome.tiff format HOT 14
- Implement Tile Stitching Feature in Image Preprocessing
- Use updated openslide v4.0.0 HOT 1
- Add Installation and Setup Instructions for Mamba alongside Conda HOT 1
- http://pathml.org/ image broken HOT 1
- Algorithm for Improved Spectral Unmixing with Reference Image Integration
- add install instructions for windows HOT 1
- Compatibility Query: Using PathML for X-Ray Images with Missing 'TotalPixelMatrixRows' Attribute
- AttributeError pathml.core HOT 8
- pachage install bug
- Unable to Load IMC data (ome.tiff format) properly. Image data appears 0 only...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pathml.