|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.OperationObservable | +--net.aerith.misao.util.Operation | +--net.aerith.misao.pixy.matching.DefaultMatchingSolver
The DefaultMatchingSolver
is a class to solve matching
between two lists of stars. Only some bright stars are used in
matching. In general, the first list must contain the detected
stars, and the second list must contain the catalog data. And the
map area of the second list is 4 times of that of the first list.
Inner Class Summary | |
protected class |
DefaultMatchingSolver.MatchingPositionMap
The MatchingPositionMap represents a rectangular
map of StarPosition s. |
Field Summary | |
protected double |
check_accuracy
The accuracy to judge a mapped position of a detected star coincides with a position of a catalog data. |
protected MapFunction |
map_function
The map function to convert (x,y) position in the first list to (x,y) position in the second list. |
protected MatchingFailedException |
matching_failed_exception
The exception thrown when matching is failed. |
protected int |
mode
The mode. |
static int |
MODE_IMAGE_TO_CATALOG
The mode number which represents the matching between the detected stars and the catalog data. |
static int |
MODE_IMAGE_TO_IMAGE
The mode number which represents the matching between the detected stars and the detected stars. |
protected PositionMap |
original_map1
The first list of stars and the area. |
protected PositionMap |
original_map2
The second list of stars and the area. |
protected double |
score
The matching score. |
Fields inherited from class net.aerith.misao.util.Operation |
monitor_set,
stopped |
Fields inherited from class net.aerith.misao.util.OperationObservable |
observer_list |
Constructor Summary | |
DefaultMatchingSolver(PositionMap map1,
PositionMap map2)
Constructs a DefaultMatchingSolver with two lists
of stars and the area. |
Method Summary | |
MapFunction |
getMapFunction()
Gets the map function to convert (x,y) position in the first list to (x,y) position in the second list. |
double |
getScore()
Gets the matching score. |
void |
operate()
Operates. |
boolean |
ready()
Returns true if the operation is ready to start. |
void |
setCheckAccuracy(double accuracy)
Sets the accuracy to judge a mapped position of a detected star coincides with a position of a catalog data. |
void |
setMode(int m)
Sets the mode. |
Methods inherited from class net.aerith.misao.util.Operation |
addMonitor,
isStopped,
perform,
run,
stop |
Methods inherited from class net.aerith.misao.util.OperationObservable |
addObserver,
deleteObserver,
notifyEnd,
notifyFailed,
notifyStart,
notifySucceeded,
notifyWarned |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected PositionMap original_map1
protected PositionMap original_map2
protected MapFunction map_function
protected int mode
public static final int MODE_IMAGE_TO_CATALOG
public static final int MODE_IMAGE_TO_IMAGE
protected double check_accuracy
protected double score
protected MatchingFailedException matching_failed_exception
Constructor Detail |
public DefaultMatchingSolver(PositionMap map1, PositionMap map2)
DefaultMatchingSolver
with two lists
of stars and the area. In general, the first list must contain
the detected stars, and the second list must contain the
catalog data.map1
- the first list of stars and the area.map2
- the second list of stars and the area.Method Detail |
public MapFunction getMapFunction() throws MatchingFailedException
public void setMode(int m)
m
- the mode.public void setCheckAccuracy(double accuracy)
accuracy
- the accuracy.public double getScore()
public boolean ready()
public void operate() throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |