Skip to content

A small Python module to read/write PFM (Portable Float Map) images

License

Notifications You must be signed in to change notification settings

MartinPeris/justPFM

Repository files navigation

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!

About

A small Python module to read/write PFM (Portable Float Map) images

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages