|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Metric>
lib.comparators.Metric
public enum Metric
different metrics to count the distance of two integers representing pixels.
distance(int, int)
,
PixelUtils
,
BufferedImage.getRGB(int, int)
,
BufferedImage.getRGB(int, int, int, int, int[], int, int)
Enum Constant Summary | |
---|---|
AE
absolute error count, number of different pixels (-fuzz effected) Return 1 if pixels differ, 0 if there is no difference |
|
FUZZ
mean color distance |
|
MAE
mean absolute error (normalized), average channel error distance |
|
MEPP
mean error per pixel (normalized mean error, normalized peak error) |
|
MSE
mean error squared, average of the channel error squared {@code MSE = x^2 + y^2 + ... |
|
NCC
normalized cross correlation |
|
PAE
peak absolute (normalize peak absolute) |
|
PSNR
peak signal to noise ratio |
|
RMSE
root mean squared (normalized root mean squared). |
Method Summary | |
---|---|
double |
distance(int a,
int b)
|
double |
distance(int a,
int b,
double fuzz)
|
static Metric |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Metric[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Metric AE
public static final Metric FUZZ
public static final Metric MAE
public static final Metric MEPP
public static final Metric MSE
MSE = x^2 + y^2 + ... + z^2;
public static final Metric NCC
public static final Metric PAE
public static final Metric PSNR
public static final Metric RMSE
RMSE = Sqrt( x^2 + y^2 + ... + z^2 );
Method Detail |
---|
public static Metric[] values()
for (Metric c : Metric.values()) System.out.println(c);
public static Metric valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic double distance(int a, int b, double fuzz)
a
- a pixel to compare tob
- a pixel to compare withfuzz
- color normalization factor
Metric
,
PixelUtils
public double distance(int a, int b)
a
- a pixel to compare tob
- a pixel to compare with
Metric
,
PixelUtils
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |