Convert PFM to SGI
Turn PFM images into SGI. 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
An SGI picture from a PFM file.Pixels and transparency carry over. Values from 0 to 1 map to black through white.
What you get
One SGI file with the same pixels and the same transparency as the PFM. The conversion is without loss.
Values from 0 to 1 are shown as black to white. No brightness curve is applied, so a value of 0.5 is not brightened or darkened to suit the eye.
What gets clipped
Values outside the range of 0 to 1 are clipped. PFM holds floating-point pixels, so HDR images and depth maps often reach beyond that range, and anything above 1 or below 0 does not survive in the SGI file.
Depth and disparity maps need scaling before you convert them. Bring their values into the range of 0 to 1 first, or the result shows clipped black and white areas instead of the map.
Going the other way
To turn an SGI picture back into PFM, use SGI to PFM. For other conversions of this format, see every SGI conversion.
PFM and SGI.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
SGI Image
Silicon Graphics raster images.
- Extensions
- .sgi .rgb .bw
- MIME type
- image
/x -sgi - Kind
- Images
In your code.The same PFM to SGI conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.sgi$ cv convert photo.pfm photo.sgiQuestions.What people ask about PFM to SGI.
Values outside 0 to 1 are clipped. Scale the depth or disparity values into that range before you convert.
No. Values from 0 to 1 map straight to black through white, with no brightness curve.
Yes. The SGI picture has the same pixels and the same transparency as the PFM.
No. Values outside 0 to 1 are clipped, so HDR detail beyond that range is lost.