@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 AbstractLtpDtFeature extends Object implements FacialFeature
Modifier and Type | Field and Description |
---|---|
List<List<Pixel>> |
ltpPixels
The pixels forming the binary patterns in each slice
|
Constructor and Description |
---|
AbstractLtpDtFeature(int width,
int height,
LTPWeighting weighting,
List<List<Pixel>> ltpPixels)
Construct with given parameters.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
binaryHeader()
Header for binary input.
|
protected FImage[] |
constructSlices(List<List<Pixel>> ltpPixels,
int width,
int height) |
protected FImage[] |
extractDistanceTransforms(FImage[] slices,
LTPWeighting weighting) |
protected static List<List<Pixel>> |
extractLTPSlicePixels(FImage image) |
FImage[] |
getDistanceMaps()
Get the Euclidean distance maps for each slice.
|
protected static FImage |
normaliseImage(FImage image,
FImage mask) |
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public AbstractLtpDtFeature(int width, int height, LTPWeighting weighting, List<List<Pixel>> ltpPixels)
width
- the face patch widthheight
- the face patch heightweighting
- the weighting schemeltpPixels
- the patternpublic FImage[] getDistanceMaps()
protected static FImage normaliseImage(FImage image, FImage mask)
protected static List<List<Pixel>> extractLTPSlicePixels(FImage image)
protected FImage[] extractDistanceTransforms(FImage[] slices, LTPWeighting weighting)
protected FImage[] constructSlices(List<List<Pixel>> ltpPixels, int width, int height)
public void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to out