Convert PFM to XWD
Turn PFM images into XWD. 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 X Window dump from a float map.Values from 0 to 1 become black to white, at the same size.
What you get
One XWD file with the same width and height 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 halfway between 0 and 1 is a plain midpoint gray in the XWD.
What gets clipped
Values outside the range from 0 to 1 are clipped. Anything below 0 comes out black, and anything above 1 comes out white. Detail in those parts of the PFM is not kept.
Depth and disparity maps need scaling first. Bring their values into the range from 0 to 1 before you convert, or most of the map may be clipped.
Going the other way
To turn an X Window dump back into a float map, use XWD to PFM. For other options, see every XWD conversion.
PFM and XWD.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
X Window Dump
Screen captures written by the X Window System.
- Extensions
- .xwd
- MIME type
- image
/x -xwindowdump - Kind
- Images
In your code.The same PFM to XWD conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.xwd$ cv convert photo.pfm photo.xwdQuestions.What people ask about PFM to XWD.
Values outside 0 to 1 are clipped. Scale the depth or disparity values into that range first, then convert.
No. Values from 0 to 1 map to black through white without a brightness curve.
Yes. The width and height stay the same.
Yes. Each conversion gives one XWD file.