Convert PFM to PNM
Turn PFM images into PNM. Values from 0 to 1 are shown as black to white without a brightness curve, and values outside that range are clipped, so depth or disparity maps need scaling first.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PFM files on the dialor turn it to pick what to do
PFM pixels as a plain PNM picture.The same pixels, written as an uncompressed Netpbm image.
What you get
One PNM file with the same pixels as the PFM. PNM is the simplest raster format, and the output is a Netpbm picture.
The file is uncompressed, so it is large.
What changes
Values from 0 to 1 are shown as black to white without a brightness curve. Values outside that range are clipped.
A PFM often holds HDR data or depth maps, and those values can fall outside 0 to 1. Depth or disparity maps need scaling first, so scale them into the 0 to 1 range before you convert.
Going the other way
To turn a PNM back into floating-point pixels, use PNM to PFM. The PNM file only holds what the conversion wrote, so values that were clipped do not come back.
PFM and PNM.What each format is.
The formats
Portable FloatMap
Floating-point pixels in the PNM family, used for HDR and depth maps.
- Extensions
- .pfm
- MIME type
- image
/x -portable -floatmap - Kind
- Images
Portable Anymap
Portable anymap images, the simplest raster format: PBM, PGM and PPM.
- Extensions
- .pnm .ppm .pgm .pbm
- MIME type
- image
/x -portable -anymap - Kind
- Images
In your code.The same PFM to PNM conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.pnm$ cv convert photo.pfm photo.pnmQuestions.What people ask about PFM to PNM.
Yes, but scale it first. Values outside 0 to 1 are clipped, so a depth or disparity map needs scaling into that range.
No. Values from 0 to 1 are shown as black to white without a brightness curve.
The output is an uncompressed Netpbm picture, so the file is large.
They are clipped. Values below 0 are clipped too.