img_dist_snr.c File Reference

Compute signal to noise ratio (SNR) between the encoded image and the reference image. More...

#include "contributors.h"
#include <math.h>
#include "global.h"
#include "img_distortion.h"
#include "enc_statistics.h"

Include dependency graph for img_dist_snr.c:

Go to the source code of this file.

Functions

void find_snr (ImageStructure *imgREF, ImageStructure *imgSRC, DistMetric *metricSSE, DistMetric *metricPSNR)


Detailed Description

Compute signal to noise ratio (SNR) between the encoded image and the reference image.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file img_dist_snr.c.


Function Documentation

void find_snr ( ImageStructure *  imgREF,
ImageStructure *  imgSRC,
DistMetric *  metricSSE,
DistMetric *  metricPSNR 
)

Find SNR for all three components.

Definition at line 29 of file img_dist_snr.c.

References accumulate_average(), accumulate_avslice(), ImageParameters::type, DistMetric::value, and YUV400.

Here is the call graph for this function:


Documentation generated with DoxyGen