T
- The type of InterestPointData
public abstract class InterestPointKeypoint<T extends InterestPointData> extends Keypoint
InterestPointData
.Constructor and Description |
---|
InterestPointKeypoint()
Construct with a
null location and default length feature |
InterestPointKeypoint(int length)
Construct with a
null location and feature of the given
length |
InterestPointKeypoint(OrientedFeatureVector featureVector,
T point) |
Modifier and Type | Method and Description |
---|---|
String |
asciiHeader()
Header for ascii input.
|
byte[] |
binaryHeader()
Header for binary input.
|
abstract T |
createEmptyLocation() |
void |
readASCII(Scanner in)
Read internal state from in.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeASCII(PrintWriter out)
Write the content of this as ascii to out.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
addGaussianNoise, clone, copy, copyFrom, equals, getDimensions, getFeatureVector, getLocation, getOrdinate, getRelativeKeypoints, getScale, getScaledKeypoints, getX, getY, hashCode, locationEquals, minus, setLocation, setOrdinate, setScale, setX, setY, toString, transform, translate, translate
public T extends InterestPointData location
public InterestPointKeypoint()
null
location and default length featurepublic InterestPointKeypoint(int length)
null
location and feature of the given
lengthlength
- the feature lengthpublic InterestPointKeypoint(OrientedFeatureVector featureVector, T point)
featureVector
- the feature vector containing orientation and the byte[]point
- the location and shape of the interest pointpublic abstract T createEmptyLocation()
InterestPointData
compatible with this
featurepublic void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
readBinary
in class Keypoint
in
- source to read from.IOException
- an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCII
readASCII
in interface ReadableASCII
readASCII
in class Keypoint
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
binaryHeader
in class Keypoint
public String asciiHeader()
ReadableASCII
asciiHeader
in interface ReadableASCII
asciiHeader
in interface WriteableASCII
asciiHeader
in class Keypoint
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
writeBinary
in class Keypoint
out
- sink to write toIOException
- an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
writeASCII
in class Keypoint
out
- sink to write toIOException
- an error writing to out