@Reference(type=Inproceedings, author={"Ozkan, Derya","Duygulu, Pinar"}, title="Finding people frequently appearing in news", year="2006", booktitle="Proceedings of the 5th international conference on Image and Video Retrieval", pages={"173","","182"}, url="http://dx.doi.org/10.1007/11788034_18", publisher="Springer-Verlag", series="CIVR\'06", customData={"isbn","3-540-36018-2, 978-3-540-36018-6","location","Tempe, AZ","numpages","10","doi","10.1007/11788034_18","acmid","2164555","address","Berlin, Heidelberg"}) public class DoGSIFTFeatureComparator extends Object implements FacialFeatureComparator<DoGSIFTFeature>
FacialFeatureComparator
for comparing DoGSIFTFeature
s.Constructor and Description |
---|
DoGSIFTFeatureComparator() |
Modifier and Type | Method and Description |
---|---|
byte[] |
binaryHeader()
Header for binary input.
|
static ModelDistanceCheck |
buildDefaultDistanceCheck()
Build a DistanceCheck for the spatial layout of matching normalised
facial features.
|
double |
compare(DoGSIFTFeature query,
DoGSIFTFeature target)
Compare two objects, returning a score
or distance.
|
boolean |
isDistance() |
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public DoGSIFTFeatureComparator()
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 outpublic static ModelDistanceCheck buildDefaultDistanceCheck()
public double compare(DoGSIFTFeature query, DoGSIFTFeature target)
DistanceComparator
compare
in interface DistanceComparator<DoGSIFTFeature>
query
- the first objecttarget
- the second objectpublic boolean isDistance()
isDistance
in interface DistanceComparator<DoGSIFTFeature>