PeakSignalToNoiseRatio class
Peak Signal-To-Noise-Ratio (PSNR) of two input images.
Contents
- Reference
The PSNR is calculated using the MSE of the two input images, and the max intensity value as: PSNR = 20*log10(MAX_INTENSITY) - 10*log10(MSE)
Multi-channel and 3D images are supported. In this case a MSE value is calculated per channel, and the final PSNR value uses the average of all channel MSE values as MSE in the equation above.
Inputs:
Outputs:
- 0: Squared difference image
- 1: Float scalar, PSNR value
Base classes
- class MeanSquaredError
- Mean squared error (MSE) of two input images.
Private functions
- void execute() override