Convert PFM to BMP

Turn PFM images into Bitmap. Same size without compression, with values from 0 to 1 shown as black to white without a brightness curve.

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 BMP from your floating-point image.Values from 0 to 1 become black to white. The size stays the same.

  1. What you get

    One BMP file with the same width and height as the PFM. The pixels are not compressed, and BMP is read by everything.

    Values from 0 to 1 are shown as black to white, with no brightness curve applied. A value halfway between 0 and 1 is not brightened or darkened to suit the eye.

  2. What gets clipped

    Values outside the range of 0 to 1 are clipped. Anything below 0 is treated as black, and anything above 1 as white, so detail in those values is lost.

    Depth and disparity maps often hold values outside that range. Scale them into 0 to 1 first, or the result will lose that detail.

  3. File size

    BMP files are large, because the pixels are not compressed. Expect a bigger file than you might want for a plain picture.

    To go the other way, use BMP to PFM.

PFM and BMP.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 · BMP

Bitmap

Windows bitmap. Uncompressed pixels, large files, read by everything.

Extensions
.bmp .dib
MIME type
image/bmp
Kind
Images

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

terminal
$ cv convert photo.pfm photo.bmp
$ cv convert photo.pfm photo.bmp

Questions.What people ask about PFM to BMP.

01OF 04

Yes. The width and height stay the same. The conversion adds no compression.

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 are shown as black to white without a brightness curve.

No. This conversion has no options. Scale your values beforehand if they fall outside 0 to 1.

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