net.aerith.misao.pixy.matching
Class MatchingOperator

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.pixy.matching.MatchingOperator

public class MatchingOperator
extends Operation

The MatchingOperator is a class to operate matching process. This invokes the DefaultMatchingSolver#run.


Field Summary
protected  CatalogReader catalog_reader
          The catalog reader.
protected  Coor center_coor
          The R.A.
protected  ChartMapFunction cmf
          The chart composition of catalog stars.
protected  double fov_height
          The vertical field of view in degree.
protected  double fov_width
          The horizontal field of view in degree.
protected  MonoImage image
          The image.
protected  int judge
          The judgement mode.
static int JUDGEMENT_LOOSE
          The judgement mode number which indicates to loosen the condition to accept the matching result.
static int JUDGEMENT_NORMAL
          The judgement mode number which indicates the normal threshold.
protected  double limit_mag
          The limiting_magnitude.
protected  StarList list_catalog
          The list of catalog stars.
protected  StarImageList list_detected
          The list of detected stars.
protected  int mode
          The matching operation mode.
static int MODE_ACCURATE
          The matching operation mode number which indicates the initial R.A.
static int MODE_SEMI_ACCURATE
          The matching operation mode number which indicates the initial R.A.
static int MODE_UNCERTAIN
          The matching operation mode number which indicates the initial R.A.
protected  java.awt.Container pane
          The content pane.
protected  double position_angle_of_up
          The position angle of up.
 
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
MatchingOperator(MonoImage image, CatalogReader catalog_reader, java.lang.String catalog_path, Coor center_coor, double fov_width, double fov_height, double position_angle_of_up, StarImageList list_detected)
          Constructs a MatchingOperator.
 
Method Summary
 void enableInteractive(java.awt.Container pane)
          Enables the interactive catalog reading.
 StarList getCatalogList()
          Gets the list of catalog stars.
 ChartMapFunction getChartMapFunction()
          Gets the chart composition of catalog stars.
 double getLimitingMag()
          Gets the limiting_magnitude.
 void operate()
          Operates.
 boolean ready()
          Returns true if the operation is ready to start.
 void setJudgementMode(int mode)
          Sets the judgement mode.
 void setMode(int mode)
          Sets the matching operation 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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

pane

protected java.awt.Container pane
The content pane. In the case of null, the matching process is operated without GUI components.

image

protected MonoImage image
The image.

catalog_reader

protected CatalogReader catalog_reader
The catalog reader.

center_coor

protected Coor center_coor
The R.A. and Decl. of the center.

fov_width

protected double fov_width
The horizontal field of view in degree.

fov_height

protected double fov_height
The vertical field of view in degree.

position_angle_of_up

protected double position_angle_of_up
The position angle of up.

list_detected

protected StarImageList list_detected
The list of detected stars.

list_catalog

protected StarList list_catalog
The list of catalog stars.

cmf

protected ChartMapFunction cmf
The chart composition of catalog stars.

limit_mag

protected double limit_mag
The limiting_magnitude.

mode

protected int mode
The matching operation mode.

MODE_UNCERTAIN

public static final int MODE_UNCERTAIN
The matching operation mode number which indicates the initial R.A. and Decl., field of view, position angle are uncertain.

MODE_SEMI_ACCURATE

public static final int MODE_SEMI_ACCURATE
The matching operation mode number which indicates the initial R.A. and Decl., field of view, position angle are semi accurate.

MODE_ACCURATE

public static final int MODE_ACCURATE
The matching operation mode number which indicates the initial R.A. and Decl., field of view, position angle are accurate.

judge

protected int judge
The judgement mode.

JUDGEMENT_NORMAL

public static final int JUDGEMENT_NORMAL
The judgement mode number which indicates the normal threshold.

JUDGEMENT_LOOSE

public static final int JUDGEMENT_LOOSE
The judgement mode number which indicates to loosen the condition to accept the matching result.
Constructor Detail

MatchingOperator

public MatchingOperator(MonoImage image,
                        CatalogReader catalog_reader,
                        java.lang.String catalog_path,
                        Coor center_coor,
                        double fov_width,
                        double fov_height,
                        double position_angle_of_up,
                        StarImageList list_detected)
Constructs a MatchingOperator.
Parameters:
image - the image.
catalog_reader - the catalog reader.
catalog_path - the catalog path separated by the system dependent path separator.
center_coor - the R.A. and Decl. of the center.
fov_width - the horizontal field of view in degree.
fov_height - the vertical field of view in degree.
position_angle_of_up - the position angle of up.
list_detected - the list of detected stars.
Method Detail

enableInteractive

public void enableInteractive(java.awt.Container pane)
Enables the interactive catalog reading.
Parameters:
pane - the pane.

getCatalogList

public StarList getCatalogList()
Gets the list of catalog stars.
Returns:
the list of catalog stars.

getChartMapFunction

public ChartMapFunction getChartMapFunction()
Gets the chart composition of catalog stars.
Parameters:
return - the chart composition of catalog stars.

getLimitingMag

public double getLimitingMag()
Gets the limiting_magnitude.
Returns:
the limiting_magnitude.

setMode

public void setMode(int mode)
Sets the matching operation mode.
Parameters:
mode - the mode number.

setJudgementMode

public void setJudgementMode(int mode)
Sets the judgement mode.
Parameters:
mode - the mode number.

ready

public boolean ready()
Returns true if the operation is ready to start.
Overrides:
ready in class Operation
Returns:
true if the operation is ready to start.

operate

public void operate()
             throws java.lang.Exception
Operates.
Overrides:
operate in class Operation
Throws:
java.lang.Exception - if an error occurs.