public class StarRegister extends Object
| Modifier and Type | Field and Description |
|---|---|
private double |
deltaPix
The expected uncertainity of the catalog positions in pixels.
|
private Point2D.Double[][] |
dPolarDB
Polar coordinates distances for each database stars with respect to all
database stars.
|
private Point2D.Double[][] |
dPolarIM
Polar coordinates distances for each image stars with respect to all
image stars.
|
private int[] |
match
Vector with nObj size holding the matched catalog star indexes for each
object in the CCD image.
|
private int |
nObj
Number of objects found in the image;
|
private int |
nRef
Number of reference (catalog) stars found in the database.
|
private double[][] |
xyDB
2D vector with the stars' X-Y pixels coordinates in the database.
|
private double[][] |
xyIM
2D vector with the stars' X-Y pixels coordinates on the CCD image.
|
| Constructor and Description |
|---|
StarRegister(double[][] _xyIM,
double[][] _xyDB)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private int |
calcDistances()
Calculates and stores the polar coordinate distances for each pairs of
star in the CCD image and in the catalog.
|
int |
findMatches()
Assumption: all the stars can be seen in the image can also be found in
the catalog.
|
double[] |
getXYShift()
Returns the average x-y shifts calculated from the star matches.
|
static void |
main(String[] args)
Test the class.
|
void |
setDeltaPix(double _deltaPix)
Sets the expected uncertainity of the catalog positions in pixels.
|
private double[][] xyIM
private double[][] xyDB
private Point2D.Double[][] dPolarIM
private Point2D.Double[][] dPolarDB
private int nObj
private int nRef
private double deltaPix
private int[] match
public StarRegister(double[][] _xyIM,
double[][] _xyDB)
private int calcDistances()
public void setDeltaPix(double _deltaPix)
findMatches.public int findMatches()
public double[] getXYShift()
public static void main(String[] args)