Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

justpfm-1.0.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page