public class RectangularMatcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RectangularMatcher.FileMatch
Test class to read image and catalog data from a file and try to match.
|
static class |
RectangularMatcher.LogMatch
Reads the found stars as the first line and the catalog as the second
line from the auxiliary/adapter log output.
|
static class |
RectangularMatcher.SerializedMatch
Test class to read image and catalog data from a file and try to match.
|
static class |
RectangularMatcher.Thorough
More ambitious test.
|
| Modifier and Type | Field and Description |
|---|---|
private List<Guiding.RawStar> |
catalog
Pixel coordinates as deduced from the catalog.
|
private Point2D[][] |
catalogdist
Distance of star at first index to star on second, catalog space.
|
private static double |
DEFTOTMAG
Per default, we assume that differential magnitudes are more accurate.
|
private double |
delta
The expected uncertainity of the catalog positions in pixels.
|
private double |
deltamag
The expected uncertainty in differential image magnitudes.
|
private List<Integer>[] |
freq
For each star in the image the indices of the catalog matches.
|
private List<Guiding.RawStar> |
image
Pixel coordinates of the stars on the image.
|
private Point2D[][] |
imagedist
Distance of star at first index to star on second, image space.
|
private List<Integer>[] |
match
For each star in the image the indices of the catalog matches.
|
private double |
totmag
The expected uncertainty in catalog to image magnitudes in deltamags.
|
| Constructor and Description |
|---|
RectangularMatcher(List<Guiding.RawStar> im,
List<Guiding.RawStar> cat)
Constructs a new rectangluar matcher and calculates all distances.
|
RectangularMatcher(List<Guiding.RawStar> im,
List<Guiding.RawStar> cat,
double tt)
Constructs a new rectangluar matcher and calculates all distances.
|
| Modifier and Type | Method and Description |
|---|---|
private static Point2D[][] |
calcDistances(List<Guiding.RawStar> pix)
Calculates all distances between pixels.
|
Point2D |
findMatches()
Assumption: all the stars can be seen in the image can also be found in
the catalog.
|
void |
setDelta(double _deltaPix)
Sets the expected uncertainty of the catalog plus image positions in
pixels.
|
void |
setDeltaMag(double dm)
Sets the expected uncertainty of the catalog to image magnitudes.
|
void |
setTotalMagFactor(double dm)
Sets the expected uncertainty of the catalog to image magnitudes.
|
private final List<Guiding.RawStar> image
private final List<Guiding.RawStar> catalog
private final Point2D[][] imagedist
private final Point2D[][] catalogdist
private double delta
private double deltamag
private double totmag
private static final double DEFTOTMAG
public RectangularMatcher(List<Guiding.RawStar> im, List<Guiding.RawStar> cat)
im - The pixel x/y from the image, as Guiding.RawStar list.cat - The pixel x/y list from the catalog.public RectangularMatcher(List<Guiding.RawStar> im, List<Guiding.RawStar> cat, double tt)
im - The pixel x/y from the image, as Guiding.RawStar list.cat - The pixel x/y list from the catalog.private static final Point2D[][] calcDistances(List<Guiding.RawStar> pix)
public void setDelta(double _deltaPix)
findMatches().public void setDeltaMag(double dm)
public void setTotalMagFactor(double dm)
public Point2D findMatches()