CWO++library  0.32
 All Classes Functions Variables Groups
Macros | Functions
Error measurement
Convolution

Macros

#define CWO_ERROR   (-1)
#define CWO_SUCCESS   (0)
#define CWO_SUCCESS   (0)

Functions

virtual float CWO::MSE (CWO &ref)
 Measure MSE between target and reference images.
float CWO::SNR (CWO &ref)
 Measure SNR(Signal to Noise Ratio) between target and reference images.
float CWO::PSNR (CWO &ref)
 Measure PSNR between target and reference images.
float CWO::SSIM (CWO &ref)
 Measure SSIM between target and reference images.
float CWO::SpeckleContrast (int m, int n, int Sx, int Sy)

Detailed Description


Function Documentation

virtual float CWO::MSE ( CWO ref)
virtual

Measure MSE between target and reference images.

CWO ref,tar;
ref.Load("reference_image.bmp");
tar.Load("taeget_image.bmp");
float mse=tar.MSE(ref);
printf("MSE is %f\n",mse);

Reimplemented in GWO.

float CWO::SNR ( CWO ref)

Measure SNR(Signal to Noise Ratio) between target and reference images.

CWO ref,tar;
ref.Load("reference_image.bmp");
tar.Load("taeget_image.bmp");
float snr=tar.SNR(ref);
printf("SNR is %f\n",snr);
float CWO::PSNR ( CWO ref)

Measure PSNR between target and reference images.

CWO ref,tar;
ref.Load("reference_image.bmp");
tar.Load("taeget_image.bmp");
float psnr=tar.PSNR(ref);
printf("PSNR is %f\n",psnr);
float CWO::SSIM ( CWO ref)

Measure SSIM between target and reference images.

CWO ref,tar;
ref.Load("reference_image.bmp");
tar.Load("taeget_image.bmp");
float ssim=tar.SSIM(ref);
printf("SSIM is %f\n",ssim);