net.aerith.misao.pixy
Class ExaminationOperator

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

public class ExaminationOperator
extends Operation

The ExaminationOperator is a class to operate the whole process of image examination.


Field Summary
protected  boolean assume_flat
          True when not to calculate the distortion field.
protected  boolean correct_blooming_position
          True when to correct the positions of blooming stars.
protected  boolean fix_mag_formula_gradient
          True when to fix the gradient of the magnitude translation formula as -1.
protected  ImageConverter image_converter
          The image converter.
protected  int inner_aperture_size
          The aperture size of a star.
protected  XmlInstruction instruction
          The instruction.
protected  int matching_judge
          The judgement mode of matching.
protected  int matching_mode
          The matching mode.
protected  int outer_aperture_size
          The aperture size of sky around a star.
protected  java.awt.Container pane
          The content pane.
protected  XmlReport report
          The result XML report document.
protected  boolean retry_flag
          True when to retry 9 times at most.
protected  int star_detection_mode
          The star detection mode.
 
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
ExaminationOperator(XmlInstruction instruction)
          Constructs an ExaminationOperator.
 
Method Summary
 void assumeFlat()
          Sets the flag not to calculate the ditortion field.
 void enableInteractive(java.awt.Container pane)
          Enables the interactive catalog reading.
 void fixMagnitudeTranslationFormulaGradient()
          Sets the flag to fix the gradient of the magnitude translation formula as -1.
 XmlReport getXmlReportDocument()
          Gets the XML report document.
 void operate()
          Operates.
 boolean ready()
          Returns true if the operation is ready to start.
 void setApertureSize(int inner_size, int outer_size)
          Sets the aperture sizes.
 void setCorrectBloomingPosition()
          Sets the flag to correct the positions of blooming stars.
 void setImageConverter(ImageConverter converter)
          Sets the image converter.
 void setMatchingJudgementMode(int mode)
          Sets the judgement mode of matching.
 void setMatchingMode(int mode)
          Sets the matching mode.
 void setRetryEnabled(boolean flag)
          Enables/disables the retry 9 times at most.
 void setStarDetectionMode(int mode)
          Sets the star detection 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 interactive catalog reading is disabled.

instruction

protected XmlInstruction instruction
The instruction.

report

protected XmlReport report
The result XML report document.

image_converter

protected ImageConverter image_converter
The image converter.

star_detection_mode

protected int star_detection_mode
The star detection mode.

inner_aperture_size

protected int inner_aperture_size
The aperture size of a star. For example, 4 means 4x4 pixels around the star position.

outer_aperture_size

protected int outer_aperture_size
The aperture size of sky around a star. For example, 4 means 4x4 pixels around the star position.

correct_blooming_position

protected boolean correct_blooming_position
True when to correct the positions of blooming stars.

matching_mode

protected int matching_mode
The matching mode.

matching_judge

protected int matching_judge
The judgement mode of matching.

retry_flag

protected boolean retry_flag
True when to retry 9 times at most.

fix_mag_formula_gradient

protected boolean fix_mag_formula_gradient
True when to fix the gradient of the magnitude translation formula as -1.

assume_flat

protected boolean assume_flat
True when not to calculate the distortion field.
Constructor Detail

ExaminationOperator

public ExaminationOperator(XmlInstruction instruction)
Constructs an ExaminationOperator.
Parameters:
instruction - the instruction.
Method Detail

enableInteractive

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

setImageConverter

public void setImageConverter(ImageConverter converter)
Sets the image converter.
Parameters:
converter - the image converter.

setStarDetectionMode

public void setStarDetectionMode(int mode)
Sets the star detection mode.
Parameters:
mode - the star detection mode.

setApertureSize

public void setApertureSize(int inner_size,
                            int outer_size)
Sets the aperture sizes. For example, 4 means 4x4 pixels around the star position.
Parameters:
inner_size - the aperture size of a star.
outer_size - the aperture size of sky around a star.

setCorrectBloomingPosition

public void setCorrectBloomingPosition()
Sets the flag to correct the positions of blooming stars.

setMatchingMode

public void setMatchingMode(int mode)
Sets the matching mode.
Parameters:
mode - the matching mode.

setMatchingJudgementMode

public void setMatchingJudgementMode(int mode)
Sets the judgement mode of matching.
Parameters:
mode - the mode number.

setRetryEnabled

public void setRetryEnabled(boolean flag)
Enables/disables the retry 9 times at most.
Parameters:
flag - true when to enable retry.

fixMagnitudeTranslationFormulaGradient

public void fixMagnitudeTranslationFormulaGradient()
Sets the flag to fix the gradient of the magnitude translation formula as -1.

assumeFlat

public void assumeFlat()
Sets the flag not to calculate the ditortion field.

getXmlReportDocument

public XmlReport getXmlReportDocument()
Gets the XML report document.
Returns:
the XML report document.

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.