Convert PFM to JP2

Turn PFM images into JP2. 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 JPEG 2000 picture from a float image.Same size as the PFM, lossy at quality 80 unless you change it.

  1. What you get

    One JP2 file with the same width and height as the PFM. The compression is lossy, and the default Quality is 80.

    Values from 0 to 1 are shown as black to white. No brightness curve is applied.

  2. What changes

    Values outside the range of 0 to 1 are clipped. A depth or disparity map often holds values beyond that range, so scale it into 0 to 1 first. Without scaling, the clipped parts come out as flat black or white.

    Because the compression is lossy, the picture is not an exact copy of the float values.

  3. Setting Quality

    Set Quality from 1 to 100. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    To go the other way, use JP2 to PFM.

PFM and JP2.What each format is, and the options this conversion takes.

  1. 01 · quality

    Quality

    How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    1 to 100 default 80

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 · JP2

JPEG 2000

JPEG 2000, a wavelet image codec used in archives, cinema and medical imaging.

Extensions
.jp2 .j2k
MIME type
image/jp2
Kind
Images

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

terminal
$ cv convert photo.pfm photo.jp2
$ cv convert photo.pfm photo.jp2

Questions.What people ask about PFM to JP2.

01OF 04

Values outside 0 to 1 are clipped. Scale the depth or disparity map into that range before converting.

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

Yes, at quality 80 unless you set Quality to another value.

Yes. The picture has the same width and height as the PFM.

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