public class MirrorCenter extends PropertyContainer
dxm = -k·dxd,we can write
xm = -k·xd+(1+k)m,where m is the projection center, i.e. they point where xm = xd. This class solves for both, the vector m and the scalar k using coordinate pairs of the direct and the reflected image.
| Modifier and Type | Field and Description |
|---|---|
private Multidimensional |
center
The function to minimize.
|
private static double |
DEFK
Starting value for k.
|
private static double |
DEFXCENTER
Starting value for mirror center x.
|
private static double |
DEFYCENTER
Starting value for mirror center y.
|
private List |
direct
List of points giving the direct star images.
|
static String |
KEY_DIRECT
The key to the direct pairs.
|
static String |
KEY_K
The key to the starting value of focal scale conversion faktor k.
|
static String |
KEY_MIRROR
The key to the mirror pairs.
|
static String |
KEY_XCENTER
The key to the starting mirroring center along x-axis.
|
static String |
KEY_YCENTER
The key to the starting mirroring center along x-axis.
|
private List |
mirror
List of points giving the mirrored star images.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
MirrorCenter(Map prop)
Constructs a new mirror center, defaulting the starting values.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] arg)
Reads the properties from the command line, construct a new mirror
center object and use an Amoeba to optimize the focal length ratio
and the x/y mirror position.
|
augment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_K
public static final String KEY_XCENTER
public static final String KEY_YCENTER
public static final String KEY_DIRECT
public static final String KEY_MIRROR
private static final double DEFK
private static final double DEFXCENTER
private static final double DEFYCENTER
private List direct
private List mirror
private Multidimensional center
public MirrorCenter(Map prop)
public static void main(String[] arg)