Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using openslide
#1
Can anyone help me with the package "openslide". I'm trying to import the package and want to output an image with .svs format. I have installed the package with pip but I'm not able to use it. I'm new to python and is having a real difficult time on using this pacakge.
Reply
#2
How exactly you are not able to use it? Please, post your code in code tags and full traceback in error tags.
Reply
#3
I was able to import it successfully. Can you help me with the syntax of how to read an image using openslide. I'm trying to read an ".svs" format.
Reply
#4
Best would be to start with reading the docs for the package
Reply
#5
are there any tutorials for openslide? I'm finding it very difficult to work with this package as I'm fairly new to Python as well.
Reply
#6
I was able to output the .svs format with the help of Pillow and openslide but the image was converted to bmp format.
This was my code

from PIL import Image
import openslide

img = Image.open('region.svs')
img.show()


The image was distorted because when the image opened it was changed to a different format that was bmp and the original image that was read was in .svs format.
I want to output the image in .svs format
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020