net.grelf.grip
Class Analyser

java.lang.Object
  extended by net.grelf.grip.Analyser

public class Analyser
extends java.lang.Object

Analyses stars detected as blobs in astro-photographs, to enable the same stars to be matched in several images. This is done by examining the vectors connecting the brightest stars in each image. A star which has a similar pattern of directions and distances to other stars in each image is deemed to be the same star. Static methods only, this class cannot be instantiated.


Method Summary
static java.util.List<ConnectionList> getSortedConnections(BlobMeasList meases, int nBrightest)
          From the first n of a list of measured blobs, in descending order of brightness, get a list of polar offsets between them, in ascending order of angle.
static java.util.List<MatchPair> matchBrightest(java.util.List<java.util.List<ConnectionList>> connectionsInAllImages)
           
static void tabulateDriveErrors(java.util.List<java.lang.String> fileNames, java.util.List<java.lang.Long> captureTimesMs, java.util.List<java.lang.Float> exposuresS, java.util.List<MatchPair> matches, BlobMeas[][] lookup, int nBrightest)
          New in 9.11.24
static boolean vectorMatch(ConnectionList connectionsFromBlobB1, ConnectionList connectionsFromBlobB2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSortedConnections

public static java.util.List<ConnectionList> getSortedConnections(BlobMeasList meases,
                                                                  int nBrightest)
From the first n of a list of measured blobs, in descending order of brightness, get a list of polar offsets between them, in ascending order of angle.

Returns:
List of ConnectionLists. Each ConnectionList is sorted on polar angle. List element i refers to connections from the ith blob (after sorting).

matchBrightest

public static java.util.List<MatchPair> matchBrightest(java.util.List<java.util.List<ConnectionList>> connectionsInAllImages)
Returns:
List of type MatchPair

vectorMatch

public static boolean vectorMatch(ConnectionList connectionsFromBlobB1,
                                  ConnectionList connectionsFromBlobB2)
Returns:
true if at least half of the vectors from BlobB1 match some vectors from BlobB2

tabulateDriveErrors

public static void tabulateDriveErrors(java.util.List<java.lang.String> fileNames,
                                       java.util.List<java.lang.Long> captureTimesMs,
                                       java.util.List<java.lang.Float> exposuresS,
                                       java.util.List<MatchPair> matches,
                                       BlobMeas[][] lookup,
                                       int nBrightest)
New in 9.11.24