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, translatefinalize, getClass, notify, notifyAll, wait, wait, waitcopy, copyFrom, getX, getY, minus, setX, setY, transform, translate, translatesetOrdinatepublic 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
WriteableBinarywriteBinary in interface WriteableBinarywriteBinary in class SpatialLocationout - sink to write toIOException - an error writing to outpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCIIwriteASCII in interface WriteableASCIIwriteASCII in class SpatialLocationout - sink to write toIOException - an error writing to outpublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryreadBinary in class SpatialLocationin - source to read from.IOException - an error reading inputpublic void readASCII(Scanner in) throws IOException
ReadableASCIIreadASCII in interface ReadableASCIIreadASCII in class SpatialLocationin - source to read from.IOException - an error reading inputpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarybinaryHeader in class SpatialLocationpublic String asciiHeader()
ReadableASCIIasciiHeader in interface ReadableASCIIasciiHeader in interface WriteableASCIIasciiHeader in class SpatialLocationpublic Float getOrdinate(int dimension)
CoordinategetOrdinate in interface CoordinategetOrdinate in class SpatialLocationdimension - The index of the dimension we are interested inpublic int getDimensions()
getDimensions in interface CoordinategetDimensions in class SpatialLocationpublic float getScale()
ScaleSpacePointgetScale in interface ScaleSpacePointpublic void setScale(float scale)
ScaleSpacePointsetScale in interface ScaleSpacePointscale - the scale to set.public ScaleSpaceLocation clone()
clone in class SpatialLocation