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

Unrecognized .scn file #230

Open
alisalub opened this issue Feb 19, 2018 · 1 comment
Open

Unrecognized .scn file #230

alisalub opened this issue Feb 19, 2018 · 1 comment

Comments

@alisalub
Copy link

Issue type (bug report or feature request): Bug report
Operating system (e.g. Fedora 24, Mac OS 10.11, Windows 10): CentOS7
Platform (e.g. 64-bit x86, 32-bit ARM): 64bit x86
OpenSlide version: 3.4.1
Slide format (e.g. SVS, NDPI, MRXS): scn

Details

I'm trying to open a .scn file on a CentOS7 machine using the Python API (version 1.1.1). libtiff5 is already installed, and openslide itself was installed using yum.

When calling openslide.OpenSlide(filename) I receive the following error:

Traceback (most recent call last):
  File "/home/alisa/PycharmProjects/openslide/read_data.py", line 7, in <module>
    data = openslide.OpenSlide(filename)
  File "/opt/anaconda/anaconda2/envs/oslide/lib/python3.5/site-packages/openslide/__init__.py", line 154, in __init__
    self._osr = lowlevel.open(filename)
  File "/opt/anaconda/anaconda2/envs/oslide/lib/python3.5/site-packages/openslide/lowlevel.py", line 178, in _check_open
    raise OpenSlideError(err)
openslide.lowlevel.OpenSlideError: Couldn't locate TIFF directory for quickhash

Thanks.

@rmd13
Copy link

rmd13 commented Jan 30, 2019

you can use bioformats to read scn files. scn are not well opened by openslide.

out = bfopen('D:\QMDownload\6\[failed_handOK]Leica_scn\Leica-Fluorescence-1.scn');
    aMat(:,:,1) = out{1}{1};
    aMat(:,:,2) = out{1}{2};
    aMat(:,:,3) = out{1}{3};
    imshow(aMat);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants