|
|||||||||
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.StarImageRadiusBasedPairMaker
The StarImageRadiusBasedPairMaker
is a class to make
pairs among two lists of stars. From the brightest star to the
faintest star, a star in the first list is getting paired with a
star in the second list. If some stars are within the radius of the
star image, the brightest one is selected as a counterpart. If all
stars within the radius are too faint over the specified difference,
it will not be paired with any one.
The star elements in the first list must be the StarImage
objects.
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 double |
acceptable_mag_difference
The difference of magnitude to be accepted to paired with. |
protected StarList |
first_list
The first list of stars. |
protected PositionMap |
first_map
The map of the first list of stars. |
protected double |
minimum_radius
The minimum radius to search. |
protected java.util.Vector |
pair_list
The list of pairs. |
protected double |
search_radius_coefficient
The coefficient of radius to search a counterpart. |
protected StarList |
second_list
The second list of stars. |
protected PositionMap |
second_map
The map of the second list of stars. |
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 | |
StarImageRadiusBasedPairMaker(StarList first_list,
StarList second_list)
Constructs a StarImageRadiusBasedPairMaker with
two lists of stars. |
Method Summary | |
java.util.Vector |
getPairList()
Gets the list of pairs. |
void |
operate()
Operates. |
boolean |
ready()
Returns true if the operation is ready to start. |
void |
setAcceptableMagnitudeDifference(double delta_mag)
Sets the differenct of magnitude to be accepted to paired with. |
void |
setMapAreas(PositionMap map1,
PositionMap map2)
Sets the map areas to check if a star is out of the area on the other map. |
void |
setMinimumRadius(double radius)
Sets the minimum radius to search. |
void |
setSearchRadiusCoefficient(double coefficient)
Sets the coefficient of radius to search a counterpart. |
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 PositionMap first_map
protected PositionMap second_map
protected double search_radius_coefficient
protected double minimum_radius
protected double acceptable_mag_difference
protected java.util.Vector pair_list
Constructor Detail |
public StarImageRadiusBasedPairMaker(StarList first_list, StarList second_list)
StarImageRadiusBasedPairMaker
with
two lists of stars.first_list
- the first list of stars.second_list
- the second list of stars.Method Detail |
public void setSearchRadiusCoefficient(double coefficient)
coefficient
- the coefficient of radius to search a
counterpart.public void setMinimumRadius(double radius)
radius
- the minimum radius to search.public void setAcceptableMagnitudeDifference(double delta_mag)
delta_mag
- the differenct of magnitude.public void setMapAreas(PositionMap map1, PositionMap map2)
map1
- the map area of the first list of stars.map2
- the map area of the second list of stars.public java.util.Vector getPairList()
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 |