public class HomographyCameraConfig extends Object implements CameraConfig
Constructor and Description |
---|
HomographyCameraConfig() |
HomographyCameraConfig(float f,
float g) |
HomographyCameraConfig(float fx,
float fy,
float cx,
float cy,
float k1,
float k2,
float p1,
float p2) |
Modifier and Type | Method and Description |
---|---|
String |
asciiHeader()
Header for ascii input.
|
void |
readASCII(Scanner in)
Read internal state from in.
|
Touch |
transformTouch(Touch point) |
void |
writeASCII(PrintWriter out)
Write the content of this as ascii to out.
|
public HomographyCameraConfig()
public HomographyCameraConfig(float f, float g)
public HomographyCameraConfig(float fx, float fy, float cx, float cy, float k1, float k2, float p1, float p2)
public Touch transformTouch(Touch point)
transformTouch
in interface CameraConfig
public String asciiHeader()
ReadableASCII
asciiHeader
in interface ReadableASCII
asciiHeader
in interface WriteableASCII
public void readASCII(Scanner in) throws IOException
ReadableASCII
readASCII
in interface ReadableASCII
in
- source to read from.IOException
- an error reading inputpublic void writeASCII(PrintWriter out) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
out
- sink to write toIOException
- an error writing to out