I am writing an application that can view and interact with whole-slide images in .svs format using the OpenSlide python library.
Using Flask and the provided web based viewer example, I am able to create a web based application that allows me to interact with the data.
However, my final application should not be web based. I am struggling to find a solution on how to display and interact with openslide images in a simple GUI (e.g. PyQt).
Thank you very much!
I made a tiny demo program using GTK to display a slide image using libvips and openslide:
https://github.com/libvips/vipsdisp-tiny
It's only 300 lines of code. It's asynchronous, so you can scroll around the image and the display will be updated in the background by a threadpool as chunks of the slide are decompressed.
It's in C, but it should be pretty easy to rework in Python.
There's a complete viewer program here:
https://github.com/jcupitt/vipsdisp
It looks like this:
It has a range of useful features, eg. range scaling, log scaling, support for a wide range of formats, format conversion, etc.