img_dist_ms_ssim.c File Reference

Compute structural similarity (SSIM) index using the encoded image and the reference image. More...

#include "contributors.h"
#include "global.h"
#include "img_distortion.h"
#include "enc_statistics.h"
#include "memalloc.h"
#include "math.h"

Include dependency graph for img_dist_ms_ssim.c:

Go to the source code of this file.

Defines

#define UNBIASED_VARIANCE
#define MS_SSIM_PAD   6
#define MS_SSIM_PAD2   3
#define MS_SSIM_BETA0   0.0448
#define MS_SSIM_BETA1   0.2856
#define MS_SSIM_BETA2   0.3001
#define MS_SSIM_BETA3   0.2363
#define MS_SSIM_BETA4   0.1333
#define MAX_SSIM_LEVELS   5

Functions

float compute_structural_components (ImageParameters *p_Img, InputParameters *p_Inp, imgpel **refImg, imgpel **encImg, int height, int width, int win_height, int win_width, int comp)
float compute_luminance_component (ImageParameters *p_Img, InputParameters *p_Inp, imgpel **refImg, imgpel **encImg, int height, int width, int win_height, int win_width, int comp)
void horizontal_symmetric_extension (int **buffer, int width, int height)
void vertical_symmetric_extension (int **buffer, int width, int height)
static void imgpel_to_padded_int (imgpel **src, int **buffer, int width, int height)
void downsample (imgpel **src, imgpel **out, int height, int width)
float compute_ms_ssim (ImageParameters *p_Img, InputParameters *p_Inp, imgpel **refImg, imgpel **encImg, int height, int width, int win_height, int win_width, int comp)
void find_ms_ssim (ImageParameters *p_Img, InputParameters *p_Inp, ImageStructure *ref, ImageStructure *src, DistMetric *metricSSIM)


Detailed Description

Compute structural similarity (SSIM) index using the encoded image and the reference image.

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

Definition in file img_dist_ms_ssim.c.


Function Documentation

void find_ms_ssim ( ImageParameters p_Img,
InputParameters p_Inp,
ImageStructure *  ref,
ImageStructure *  src,
DistMetric metricSSIM 
)

Find MS-SSIM for all three components.

Definition at line 332 of file img_dist_ms_ssim.c.

References accumulate_average(), accumulate_avslice(), distortion_metric::value, and YUV400.

Here is the call graph for this function:


Documentation generated with DoxyGen