LinuxCommandLibrary

pnmpsnr

Calculate peak signal-to-noise ratio between images

TLDR

Compare two images (PSNR)

$ pnmpsnr [image1.pnm] [image2.pnm]
copy
Calculate peak signal-to-noise ratio
$ pnmpsnr [original.pnm] [compressed.pnm]
copy

SYNOPSIS

pnmpsnr [file1] [file2]

DESCRIPTION

pnmpsnr calculates the Peak Signal-to-Noise Ratio (PSNR) between two PNM images. PSNR is a standard metric for measuring image quality, commonly used to evaluate the fidelity of compressed or processed images against the original.
Higher PSNR values (measured in decibels) indicate greater similarity between the images. Typical values range from 30-50 dB for acceptable quality. Both images must have the same dimensions. Part of the Netpbm toolkit.

PARAMETERS

FILE1

First input image (reference).
FILE2
Second input image (comparison).

CAVEATS

Images must be same dimensions. Part of Netpbm suite.

HISTORY

pnmpsnr was created as part of Netpbm for image quality comparison.

SEE ALSO

pnmarith(1), pamfile(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community