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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for justpfm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3387e5a28502b5e3236caa622e22273efa8420c104dcfd0b3f6f9a1a1f9cd6a8
MD5 2e8c8bbee3d6205723fdf4bd2e0a8a01
BLAKE2b-256 b6568082af3341a0ce8b625087fef30650c7643c8a68529458524c7cf678a30b

See more details on using hashes here.

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

Hashes for justpfm-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83b219fe5614af06a9afdfd212a610715d2e171312b50521f0b7e34631d803ee
MD5 00ec8b549de00459ab724049143381a2
BLAKE2b-256 7f616af99b77f426c62c56d40b40def7339fe08a5c1b158e92a92bccd7508ce5

See more details on using hashes here.

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