Convert PFM to SUN

Turn PFM images into SUN. 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 Sun Raster picture from a float map.Same width and height, and no loss in the conversion.

  1. What you get

    A SUN file that holds your PFM image at the same width and height. The result is one file, and the conversion is without loss.

    Values from 0 to 1 are shown as black to white. No brightness curve is applied, so the gray levels follow the values directly.

  2. Values outside 0 to 1

    Values outside the range of 0 to 1 are clipped. Anything below 0 turns black, and anything above 1 turns white.

    Depth and disparity maps often hold values beyond that range, so scale them first. Without scaling, much of the map can clip to black or white.

  3. Options and the other direction

    This conversion has no options to set. You pick the file and get the SUN picture.

    To go back, use SUN to PFM. For other formats, see every PFM conversion.

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

Sun Raster

Sun Microsystems raster images from old Unix workstations.

Extensions
.ras .sun
MIME type
image/x-sun-raster
Kind
Images

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

terminal
$ cv convert photo.pfm photo.ras
$ cv convert photo.pfm photo.ras

Questions.What people ask about PFM to SUN.

01OF 04

Yes. The width and height stay the same.

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

No. Values from 0 to 1 map to black through white without a brightness curve.

No. There are no options for PFM to SUN.

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