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
This package is available at PyPI. To install the package using pip
run:
python -m pip install primawera
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
Start without any data
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
. Sometimes it is not
possible to automatically infer the mode (see Pillow image modes).
in which case it has to be provided it manually.
from primawera.app import run_app
run_app(data)
# Or
run_app(data, 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 Distributions
Built Distribution
Hashes for primawera-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9217a517fbb027abf2f15fddb51635b8fa2d2f4facecb7a9b8ec40b509ea7f04 |
|
MD5 | 7b35586801e445261d9366aa9a761d7a |
|
BLAKE2b-256 | 07495fcc661a122566b00f1aa707206cf9cca68068c5dbb10f34cf355f2c8755 |