Convert PFM to CALS
Turn PFM images into CALS. 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
A black and white CALS raster from a PFM.Same width and height, compressed with CCITT Group 4.
What you get
A CALS Type 1 raster in black and white, at the same width and height as the PFM. It is compressed with CCITT Group 4, the format used for scans of engineering drawings and technical manuals in defense and government archives. The conversion gives one file.
How values become black and white
Values from 0 to 1 are shown as black to white without a brightness curve. Values outside that range are clipped.
Depth or disparity maps need scaling first, so that their values fall between 0 and 1 before you convert them.
CALS Type 1 holds only black and white. Colors and grays are dithered, and transparent areas become white.
Going the other way
To turn a CALS file back into floating-point pixels, use CALS to PFM. The floating-point values of the PFM are not kept in the CALS file, which holds only black and white.
PFM and CALS.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
CALS Raster
CALS Type 1 raster, the black and white Group 4 scans of engineering drawings and technical manuals in defense and government archives.
- Extensions
- .cal .cals
- MIME type
- image
/x -cals - Kind
- Images
In your code.The same PFM to CALS conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.cal$ cv convert photo.pfm photo.calQuestions.What people ask about PFM to CALS.
Yes. The CALS raster has the same width and height as the PFM.
Only values from 0 to 1 map to black through white, and values outside that range are clipped. Scaling the map into that range before converting avoids the clipping.
No. The output is black and white. Colors and grays are dithered.
They become white.