Skip to main content

Python pfm files reader

Project description

Python pfm files reader. Fast and python3 compatible, with compression included

Install

pip install pypfm

If you know the size upfront, specify it:

from pypfm import PFMLoader
loader = PFMLoader((width, height), color=False, compress=False)

Otherwise it will find it by itself (slower):

from pypfm import PFMLoader
loader = PFMLoader(color=False, compress=False)

Read a pfm file

pfm = loader.load_pfm('test.pfm')

Save a pfm file:

loader.save_pfm('test.pfm', pfm)

Using zfp compression:

from pypfm import PFMLoader
loader = PFMLoader(color=False, compress=True)
pfm = loader.load_pfm('test.pfm')
loader.save_pfm('test.pfm', pfm)

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

pypfm-1.4.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

pypfm-1.4.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pypfm-1.4.4.tar.gz.

File metadata

  • Download URL: pypfm-1.4.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

File hashes

Hashes for pypfm-1.4.4.tar.gz
Algorithm Hash digest
SHA256 dc26e6f9a3936039c69d8fcdce48474e799f9c1cc3f5c0bc6975632d923e0cd1
MD5 1491521ed6c393630e3eb7fe7770af94
BLAKE2b-256 86a8670988f9439b1c8b57c59aefa783529d4ca8335caf670ef8663b2a21596b

See more details on using hashes here.

File details

Details for the file pypfm-1.4.4-py3-none-any.whl.

File metadata

  • Download URL: pypfm-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

File hashes

Hashes for pypfm-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eca0612d0119a9b5c977b453af2be6a6eedc015df3e8c6f55a0893b8be1738c6
MD5 ff9e519e477b15ed2c4e5e4700259249
BLAKE2b-256 1df254d78078586e3a9a7e361ac4e1cf65db4410918d15228289f5143a0b7ea1

See more details on using hashes here.

Supported by

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