image-js
Version:
Image processing and manipulation in JavaScript
11 lines • 480 B
TypeScript
import type { Image } from '../Image.js';
/**
* Compute the Peak signal-to-noise ratio (PSNR) between two images.
* The larger the PSNR, the more similar the images.
* @see {@link https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio}
* @param image - First image.
* @param otherImage - Second image.
* @returns PSNR of the two images in decibels.
*/
export declare function computePsnr(image: Image, otherImage: Image): number;
//# sourceMappingURL=computePsnr.d.ts.map