@Reference(type=Article, author={"Tan, Xiaoyang","Triggs, Bill"}, title="Enhanced local texture feature sets for face recognition under difficult lighting conditions", year="2010", journal="Trans. Img. Proc.", pages={"1635","1650"}, url="http://dx.doi.org/10.1109/TIP.2010.2042645", month="June", number="6", publisher="IEEE Press", volume="19") public class GaussianWeighting extends Object implements LTPWeighting
LTPWeighting function.| Constructor and Description |
|---|
GaussianWeighting()
Construct with a default standard deviation of 3.0
|
GaussianWeighting(float sigma)
Construct with the given standard deviation
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
String |
toString() |
float |
weightDistance(float distance)
Determine the weighting scheme for the distances produced
by the EuclideanDistanceTransform.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public GaussianWeighting()
public GaussianWeighting(float sigma)
sigma - the standard deviationpublic float weightDistance(float distance)
LTPWeightingweightDistance in interface LTPWeightingdistance - the unweighted distance in pixelspublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to out