public class ScaleSpaceLocation extends SpatialLocation implements ScaleSpacePoint, Cloneable
Location
in scale-space.
ScaleSpaceLocations contain x, y and scale ordinates.Modifier and Type | Field and Description |
---|---|
float |
scale
the scale
|
x, y
Constructor and Description |
---|
ScaleSpaceLocation()
Construct the ScaleSpaceLocation at 0, 0, 0.
|
ScaleSpaceLocation(float x,
float y,
float scale)
Construct the ScaleSpaceLocation with the given x, y and
scale coordinates.
|
Modifier and Type | Method and Description |
---|---|
String |
asciiHeader()
Header for ascii input.
|
byte[] |
binaryHeader()
Header for binary input.
|
ScaleSpaceLocation |
clone() |
int |
getDimensions() |
Float |
getOrdinate(int dimension)
Get the ordinate value for a specific dimension.
|
float |
getScale()
Get the scale associated with this point.
|
void |
readASCII(Scanner in)
Read internal state from in.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
setScale(float scale)
Set the scale associated with this point.
|
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.
|
copy, copyFrom, createRandomPoint, createRandomPoint, equals, fromDoubleArray, getX, getY, hashCode, minus, setOrdinate, setX, setY, toString, transform, translate, translate
finalize, getClass, notify, notifyAll, wait, wait, wait
copy, copyFrom, getX, getY, minus, setX, setY, transform, translate, translate
setOrdinate
public float scale
public ScaleSpaceLocation()
public ScaleSpaceLocation(float x, float y, float scale)
x
- the x-coordinatey
- the y-coordinatescale
- the scale coordinatepublic void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
writeBinary
in class SpatialLocation
out
- sink to write toIOException
- an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
writeASCII
in class SpatialLocation
out
- sink to write toIOException
- an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
readBinary
in class SpatialLocation
in
- source to read from.IOException
- an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCII
readASCII
in interface ReadableASCII
readASCII
in class SpatialLocation
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
binaryHeader
in class SpatialLocation
public String asciiHeader()
ReadableASCII
asciiHeader
in interface ReadableASCII
asciiHeader
in interface WriteableASCII
asciiHeader
in class SpatialLocation
public Float getOrdinate(int dimension)
Coordinate
getOrdinate
in interface Coordinate
getOrdinate
in class SpatialLocation
dimension
- The index of the dimension we are interested inpublic int getDimensions()
getDimensions
in interface Coordinate
getDimensions
in class SpatialLocation
public float getScale()
ScaleSpacePoint
getScale
in interface ScaleSpacePoint
public void setScale(float scale)
ScaleSpacePoint
setScale
in interface ScaleSpacePoint
scale
- the scale to set.public ScaleSpaceLocation clone()
clone
in class SpatialLocation