public class Perception extends Object
The perceptual settings to be used in comparison process.
| Modifier and Type | Class and Description |
|---|---|
static class |
Perception.AmountType
The enumeration of amount types.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
globalDifferenceAmount
The global difference amount.
|
protected Float |
globalDifferenceTreshold
The global difference treshold.
|
protected Float |
onePixelTreshold
The one pixel treshold.
|
| Constructor and Description |
|---|
Perception() |
| Modifier and Type | Method and Description |
|---|---|
String |
getGlobalDifferenceAmount()
Gets the global difference amount.
|
Number |
getGlobalDifferenceAmount(Perception.AmountType amountType)
Gets the global difference amount.
|
Perception.AmountType |
getGlobalDifferenceAmountType() |
Short |
getGlobalDifferencePercentage()
Gets the global difference percentage.
|
Long |
getGlobalDifferencePixelAmount()
Gets the global difference pixel amount.
|
Float |
getGlobalDifferenceTreshold()
Gets the global difference treshold.
|
Float |
getOnePixelTreshold()
Gets the one pixel treshold.
|
void |
setGlobalDifferenceAmount(String value)
Sets the global difference amount.
|
void |
setGlobalDifferencePercentage(short globalDifferencePercentage)
Sets the global difference percentage.
|
void |
setGlobalDifferencePixelAmount(long globalDifferencePixelAmount)
Sets the global difference pixel amount.
|
void |
setGlobalDifferenceTreshold(Float value)
Sets the global difference treshold.
|
void |
setOnePixelTreshold(Float value)
Sets the one pixel treshold.
|
protected Float onePixelTreshold
protected Float globalDifferenceTreshold
protected String globalDifferenceAmount
public Float getOnePixelTreshold()
public void setOnePixelTreshold(Float value)
value - the new one pixel tresholdpublic Float getGlobalDifferenceTreshold()
public void setGlobalDifferenceTreshold(Float value)
value - the new global difference tresholdpublic String getGlobalDifferenceAmount()
public void setGlobalDifferenceAmount(String value)
value - the new global difference amountpublic Long getGlobalDifferencePixelAmount()
public void setGlobalDifferencePixelAmount(long globalDifferencePixelAmount)
globalDifferencePixelAmount - the new global difference pixel amountpublic Short getGlobalDifferencePercentage()
public void setGlobalDifferencePercentage(short globalDifferencePercentage)
globalDifferencePercentage - the new global difference percentagepublic Number getGlobalDifferenceAmount(Perception.AmountType amountType)
amountType - the amount typepublic Perception.AmountType getGlobalDifferenceAmountType()
Copyright © 2017 JBoss by Red Hat. All rights reserved.