Read and write PFM files
Project description
justPFM
A small Python module to read/write PFM (Portable Float Map) images
Install
pip install justpfm
Usage
import numpy as np
from justpfm import justpfm
# Write a test PFM file
data_to_write = np.ones((5, 5), dtype="float32")
justpfm.write_pfm(file_name="test.pfm", data=data_to_write)
# Read the test PFM file
read_data = justpfm.read_pfm(file_name="test.pfm")
That's it!
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
justpfm-1.0.0.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file justpfm-1.0.0.tar.gz
.
File metadata
- Download URL: justpfm-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3387e5a28502b5e3236caa622e22273efa8420c104dcfd0b3f6f9a1a1f9cd6a8 |
|
MD5 | 2e8c8bbee3d6205723fdf4bd2e0a8a01 |
|
BLAKE2b-256 | b6568082af3341a0ce8b625087fef30650c7643c8a68529458524c7cf678a30b |
File details
Details for the file justpfm-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: justpfm-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83b219fe5614af06a9afdfd212a610715d2e171312b50521f0b7e34631d803ee |
|
MD5 | 00ec8b549de00459ab724049143381a2 |
|
BLAKE2b-256 | 7f616af99b77f426c62c56d40b40def7339fe08a5c1b158e92a92bccd7508ce5 |