Catalano.Imaging.Tools
Class ObjectiveFidelity
- java.lang.Object
-
- Catalano.Imaging.Tools.ObjectiveFidelity
-
public class ObjectiveFidelity extends java.lang.ObjectObjective Fidelity Criteria. The Objective criteria, although widely used, are not necessarily correlated with out perception of image quality. For instance, an image with a low error as determined by an objective measure may actually look much worse than an image with a high error metric. References: http://uotechnology.edu.iq/sweit/lecture%202013n/4th%20Image%20Processing%20_Lectures/DIP_Lecture13.pdf
-
-
Constructor Summary
Constructors Constructor and Description ObjectiveFidelity(FastBitmap original, FastBitmap reconstructed)Initialize a new instance of the ObjectiveFidelity class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetDSNR()Derivative Signal noise ratio.doublegetMAE()Calculate mean absolute error.doublegetMSE()Calculate Root mean square Error.FastBitmapgetOriginalImage()Get Original image.doublegetPSNR()Calculate PEAK signal-to-noise ratio.doublegetPSNR(int l)Calculate PEAK signal-to-noise ratio.FastBitmapgetReconstructedImage()Get Reconstructed image.doublegetSNR()Calculate Mean square signal-to-noise ratio.intgetTotalError()Calculate total error.doublegetUniversalQualityIndex()Calculate Universal Quality Index.voidsetOriginalImage(FastBitmap original)Set Original image.voidsetReconstructedImage(FastBitmap reconstructed)Set Reconstructed Image.
-
-
-
Constructor Detail
-
ObjectiveFidelity
public ObjectiveFidelity(FastBitmap original, FastBitmap reconstructed)
Initialize a new instance of the ObjectiveFidelity class.- Parameters:
original- Original image.reconstructed- Reconstructed image.
-
-
Method Detail
-
getOriginalImage
public FastBitmap getOriginalImage()
Get Original image.- Returns:
- Original image.
-
setOriginalImage
public void setOriginalImage(FastBitmap original)
Set Original image.- Parameters:
original- Original image.
-
getReconstructedImage
public FastBitmap getReconstructedImage()
Get Reconstructed image.- Returns:
- Reconstructed image.
-
setReconstructedImage
public void setReconstructedImage(FastBitmap reconstructed)
Set Reconstructed Image.- Parameters:
reconstructed- Reconstructed image.
-
getTotalError
public int getTotalError()
Calculate total error.- Returns:
- Total error.
-
getMAE
public double getMAE()
Calculate mean absolute error.- Returns:
- Mean absolute error.
-
getMSE
public double getMSE()
Calculate Root mean square Error.- Returns:
- MSE.
-
getSNR
public double getSNR()
Calculate Mean square signal-to-noise ratio.- Returns:
- SNR.
-
getDSNR
public double getDSNR()
Derivative Signal noise ratio. D-SNR consider the sentivity of the human eye to the edges. Reference: A New Objective Fidelity Criterion For Image Processing: Derivative SNR - Hakki Tarkan Yalazan, and Melek D. Yucel.- Returns:
- D-SNR.
-
getPSNR
public double getPSNR()
Calculate PEAK signal-to-noise ratio.- Returns:
- PSNR.
-
getPSNR
public double getPSNR(int l)
Calculate PEAK signal-to-noise ratio.- Parameters:
l- Number of gray levels.- Returns:
- PSNR.
-
getUniversalQualityIndex
public double getUniversalQualityIndex()
Calculate Universal Quality Index. References: Wang, Zhou, and Alan C. Bovik. "A universal image quality index." Signal Processing Letters, IEEE 9.3 (2002): 81-84.- Returns:
- Universal Image Quality Index.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG