|
|||||||||
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.pairing.SupplementaryPairMaker
The SupplementaryPairMaker
is a class to make pairs
between the single (not paired) stars among two lists of stars.
From the brightest star to the faintest star, a single star in the
first list is getting paired with a single star in the second list.
But if the second star has a closer candidate in the first list,
it is paired with the closer one. Note that only bright stars,
brighter than the specified threshold, are considered.
The search radius is determined based on the magnitude as:
7 mag : 4'The upper limit is 3'. The lower limit is 5 pixels.
9 mag : 2'
11 mag : 1'
13 mag : 30"
15 mag : 15"
The (x,y) position and magnitude of stars in the both lists must be set properly. The two lists are sorted in the constructor.
Field Summary | |
protected ChartMapFunction |
cmf
The chart composition of catalog stars. |
protected StarList |
first_list
The first list of stars. |
protected double |
minimum_radius
The minimum search radius. |
protected java.util.Vector |
pair_list
The list of pairs. |
protected StarList |
second_list
The second list of stars. |
protected double |
threshold
The threshold. |
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 | |
SupplementaryPairMaker(StarList first_list,
StarList second_list,
ChartMapFunction cmf)
Constructs a SupplementaryPairMaker with two
lists of stars. |
Method Summary | |
java.util.Vector |
getPairList()
Gets the list of pairs. |
private double |
getSearchRadius(double mag)
Gets the search radius. |
void |
operate()
Operates. |
boolean |
ready()
Returns true if the operation is ready to start. |
void |
setMinimumSearchRadius(double radius)
Sets the minimum search radius. |
void |
setThreshold(double threshold)
Sets the threshold. |
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 StarList first_list
protected StarList second_list
protected ChartMapFunction cmf
protected double threshold
protected double minimum_radius
protected java.util.Vector pair_list
Constructor Detail |
public SupplementaryPairMaker(StarList first_list, StarList second_list, ChartMapFunction cmf)
SupplementaryPairMaker
with two
lists of stars.first_list
- the first list of stars.second_list
- the second list of stars.cmf
- the chart composition of catalog stars.Method Detail |
public void setThreshold(double threshold)
threshold
- the threshold.public void setMinimumSearchRadius(double radius)
radius
- the minimum search radius.public java.util.Vector getPairList()
private double getSearchRadius(double mag)
mag
- the magnitude.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 |