Skip to main content

Python pfm files reader

Project description

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

Install ` pip install pypfm `

If you know the size upfront, specify it: `python from pypfm import PFMLoader loader = PFMLoader((width, height), color=False, compress=False) ` Otherwise it will find it by itself (slower): `python from pypfm import PFMLoader loader = PFMLoader(color=False, compress=False) `

Read a pfm file `python pfm = loader.load_pfm('test.pfm') `

Save a pfm file: `python loader.save_pfm('test.pfm', pfm) `

Using zfp compression:

`python 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.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

pypfm-1.4.2-py3-none-any.whl (3.8 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