Show how to use OpenSlide in MATLAB through invoking Python script
This small code example shows how to use OpenSlide in MATLAB through invoking Python script.
This code example needs a Python virtual environment located at folder /home/user/python/env
.
pip install numpy
pip install openslide-python
Don’t forget to install the OpenSlide library according to your OS.
Run the script use_example.m
in MATLAB.
The function nparray2mat
is from the code sample of
Christoph Wiedemann.