Git Product home page Git Product logo

Comments (2)

mostafajahanifar avatar mostafajahanifar commented on June 9, 2024 2

[Fixing the problem in Linux Ubuntu 20.04.3]

There are several solutions reported to solve this problem. For example:

  1. if you are using Conda environments, you can easily call the following command to install the right version of the pixman library:
    conda install -c conda-forge pixman
    this will install the latest version of the pixman lib (0.4.0) which has this bug resolved.
  2. Some of the Linux distributions officially support other versions of the the pixman library. Check the following link to see if you can install one of the working versions (0.34, 0.36, 0.40) on your Linux distribution using apt-get install command.
  3. For the worst case scenario (no conda and Ubuntu version 20.04.3 for example) you can build the pixman lib from the source. It doesn't have any particular dependency so it's easy to build manually. Follow the instruction here: https://www.linuxfromscratch.org/blfs/view/svn/general/pixman.html, you only need to install pip install meson, ninja beforehand.

from tiatoolbox.

mostafajahanifar avatar mostafajahanifar commented on June 9, 2024

Currently I'm using the following Linux distribution:

NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"

Which has libpixman version 0.38.4 installed. I'm running into the same issue reported here. Here is an example code for extracting slide overview:

wsi = wsireader.WSIReader.open(file)
overview = wsi.slide_thumbnail(resolution=4, units='level')
cv2.imwrite('save_path.png', overview[:,:,::-1])

the result looks like this:
1M001_lr

I also tried extracting some patches, results
1005
:
970

from tiatoolbox.

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.