compute the quality measure of a reconstructed image - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Image Processing : ImageTools Package : ImageTools/Quality

ImageTools[Quality] - compute the quality measure of a reconstructed image

Calling Sequence

Quality( img_r, img_s, meas, opts )

Parameters

img_r

-

Image; reconstructed image

img_s

-

Image; source image

meas

-

(optional) name; quality measure

opts

-

(optional) equation(s) of the form option = value; specify options for the Quality command

Description

• 

The Quality command computes the quality measure of a reconstructed image with respect to a source image.

• 

The img_r and img_s parameters are the reconstructed and the source images, respectively. They must be grayscale images and have the same width, height, and order (C_order or Fortran_order).

Quality Measures

  

The optional meas parameter is a name specifying the quality measure. It can take one of the following values, the default is mse:

• 

mse:  mean-squared error. mse=ri,jsi,j2wh, where r,s are the reconstructed and source images, i,j range over all pixels, and w,h are the width and height.

• 

rmse: root-mean-squared error ( rms ). rmse=mse.

• 

snr: signal-to-noise ratio. snr=10log10si,j2whmse.

• 

psnr: peak signal-to-noise ratio. psnr=10log10peak2mse.

Examples

withImageTools:

img_s:=Create100,200,r,c→evalf0.5sinr50+0.5sinc30:

img_r:=0.99img_s+0.01:

Qualityimg_r,img_s,psnr

42.61176831

(1)

Qualityimg_r,img_s,snr

36.96510324

(2)

Qualityimg_r,img_s,rmse

0.007403065375

(3)

Qualityimg_r,img_s,mse

0.0000548053769525594050

(4)

See Also

ImageTools


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam