Convert PFM to XBM

Turn PFM images into XBM. 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 bitmap from a float image.Each PFM pixel becomes black or white in an XBM file written as C source.

  1. What you get

    One XBM file, an X11 bitmap in black and white only. It is written as C source text, so the image is stored as code that a program can include.

    Values from 0 to 1 are shown as black to white, with no brightness curve applied.

  2. What gets clipped

    Values outside the range of 0 to 1 are clipped. Depth or disparity maps need scaling first, so that their values fall between 0 and 1 before you convert them.

    XBM holds only black and white. The file has no shades of gray and no color.

  3. Going the other way

    To turn a bitmap back into a float image, use XBM to PFM. For other conversions of this format, see every PFM conversion.

PFM and XBM.What each format is.

The formats

From · PFM

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
To · XBM

X BitMap

X BitMap, monochrome images as C source.

Extensions
.xbm
MIME type
image/x-xbitmap
Kind
Images

In your code.The same PFM to XBM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pfm photo.xbm
$ cv convert photo.pfm photo.xbm

Questions.What people ask about PFM to XBM.

01OF 04

Yes. Values outside 0 to 1 are clipped, so scale a depth or disparity map into that range before you convert it.

No. XBM is black and white only.

It is an X11 bitmap written as C source text.

No. Values from 0 to 1 are shown as black to white without a brightness curve.

More conversions.Other ways in and out of PFM and XBM.