Simple image viewer with 3D, complex and floating images support.
Project description
Intro
Primawera is a simple imager viewer with support for non-standard image data such as complex, floating point or 3D image data.
Installation
Very soon it will be possible to install it using pip. Right now you have to build it yourself.
Building
Required packages
More detailed information about version of packages is inside the pyproject.toml
file.
- Python 3.10
- numpy
- PIL
- PyQt5
- Qt
- h5py
Building and installing the package
Make sure you have the latest version of setuptools
, pip
and venv
packages as the building requires some
newer features of setuptools
.
Inside the root folder run:
python -m build
The command should build a wheel file inside the dist
folder. To install it run:
pip install <PATH TO WHEEL FILE>
Usage
Run empty window
It is possible to run the viewer without any data.
from primawera.app import create_window
create_window()
Visualise numpy data
If you want to visualise data inside a numpy array, you will have to import the function run_app
. You also have to
specify the bitdepth (for floating point data provide any nonzero number) and the mode (see [https://pillow.readthedocs.io/en/stable/handbook/concepts.html](Pillow image modes)).
from primawera.app import run_app
run_app(data, bitdepth, mode)
Run from terminal
Simply run
primawera
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for primawera-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5051829e93872e179f8f6e6f33f7e1ed0deea5c6db178eedc8099ded680715d |
|
MD5 | 8ccff610af8426d56ee0f7ac8ee056f8 |
|
BLAKE2b-256 | 1d9b78af57736dc95612115043cbdda765ba5debfcdd1a8ce477ed0ae30c8df3 |