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.

Files for pypfm, version 1.4.4
Filename, size File type Python version Upload date Hashes
Filename, size pypfm-1.4.4-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pypfm-1.4.4.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page