public class BilinearCatalogMatch extends PropertyContainer implements CatalogMatching
| Modifier and Type | Field and Description |
|---|---|
private List<StarProspect> |
catalog
Pixel coordinates as deduced from the catalog.
|
private Vector2D[][] |
catalogdist
Distance of star at first index to star on second, catalog space.
|
private static double |
DEFDIFFMAGERROR
An estimate of the mgnitude error.
|
private static double |
DEFMAGTRUNCATE |
private static double |
DEFPOSITIONERROR
An estimate of the catalog errors in pixels on ccd.
|
private static double |
DEFTOTMAGERROR
Per default, we assume that differential magnitudes are more accurate.
|
private List<Integer>[] |
freq
For each star in the image the indices of the catalog matches.
|
private List<StarDetection> |
image
Pixel coordinates of the stars on the image.
|
private Vector2D[][] |
imagedist
Distance of star at first index to star on second, image space.
|
static String |
KEY_DIFFMAGERROR
Assumed error in differential magnitudes.
|
static String |
KEY_MAGTRUNCATE |
static String |
KEY_POSITIONERROR
Assumed error in pixel position, combined catalog and image.
|
static String |
KEY_TOTMAGERROR
Assumed error in total magnitudes.
|
private List<Integer>[] |
match
For each star in the image the indices of the catalog matches.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
BilinearCatalogMatch(Map<String,String> prop)
Constructs a new matcher that is based on shifts in x and y.
|
| Modifier and Type | Method and Description |
|---|---|
private Vector2D |
bestMatch()
Assumption: all the stars can be seen in the image can also be found in
the catalog.
|
private static Vector2D[][] |
calcDistances(List<? extends Glint> pix)
Calculates all distances between pixels.
|
Vector2D |
match(List<StarDetection> raw,
List<StarProspect> catalog)
Returns an unbinned pixel shift, as the catalog position minus the
CCD-detected star position.
|
private void |
setCatalog(List<StarProspect> fov) |
private void |
setDetections(List<StarDetection> ccd) |
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_TOTMAGERROR
public static final String KEY_DIFFMAGERROR
public static final String KEY_POSITIONERROR
public static final String KEY_MAGTRUNCATE
private static final double DEFPOSITIONERROR
private static final double DEFDIFFMAGERROR
private static final double DEFTOTMAGERROR
private static final double DEFMAGTRUNCATE
private List<StarDetection> image
private List<StarProspect> catalog
private Vector2D[][] imagedist
private Vector2D[][] catalogdist
private void setDetections(List<StarDetection> ccd)
private void setCatalog(List<StarProspect> fov)
private static final Vector2D[][] calcDistances(List<? extends Glint> pix)
private Vector2D bestMatch()
public Vector2D match(List<StarDetection> raw, List<StarProspect> catalog) throws AmbiguousPatternException, NoStarException, CannotMatchException
CatalogMatchingmatch in interface CatalogMatchingAmbiguousPatternExceptionNoStarExceptionCannotMatchException