stella.adapter
Class StarRegister

java.lang.Object
  extended by stella.adapter.StarRegister

public class StarRegister
extends Object


Field Summary
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 Summary
StarRegister(double[][] _xyIM, double[][] _xyDB)
          Constructor.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xyIM

private double[][] xyIM
2D vector with the stars' X-Y pixels coordinates on the CCD image.


xyDB

private double[][] xyDB
2D vector with the stars' X-Y pixels coordinates in the database.


dPolarIM

private Point2D.Double[][] dPolarIM
Polar coordinates distances for each image stars with respect to all image stars.


dPolarDB

private Point2D.Double[][] dPolarDB
Polar coordinates distances for each database stars with respect to all database stars.


nObj

private int nObj
Number of objects found in the image;


nRef

private int nRef
Number of reference (catalog) stars found in the database.


deltaPix

private double deltaPix
The expected uncertainity of the catalog positions in pixels. From this the maximum acceptable (polar coordinate) distance deviation for matching star pairs is calculated.


match

private int[] match
Vector with nObj size holding the matched catalog star indexes for each object in the CCD image. For the unmatched stars the index value is set to -1.

Constructor Detail

StarRegister

public StarRegister(double[][] _xyIM,
                    double[][] _xyDB)
Constructor. xyIM - 2D array with identified star coordinates ordered by magnitude. xyDB - 2D array with database star coordinates ordered by magnitude.

Method Detail

calcDistances

private int calcDistances()
Calculates and stores the polar coordinate distances for each pairs of star in the CCD image and in the catalog.


setDeltaPix

public void setDeltaPix(double _deltaPix)
Sets the expected uncertainity of the catalog positions in pixels. From this the maximum acceptable (polar coordinate) distance deviation for matching star pairs is calculated in findMatches.


findMatches

public int findMatches()
Assumption: all the stars can be seen in the image can also be found in the catalog.


getXYShift

public double[] getXYShift()
Returns the average x-y shifts calculated from the star matches.


main

public static void main(String[] args)
Test the class.