net.aerith.misao.pixy.identification
Class DefaultIdentifier.StarExtractor

java.lang.Object
  |
  +--net.aerith.misao.pixy.identification.DefaultIdentifier.StarExtractor
Enclosing class:
DefaultIdentifier

protected class DefaultIdentifier.StarExtractor
extends java.lang.Object

The StarExtractor is a class to extract stars from the XML data object within the specified pixels.


Field Summary
protected  XmlData data
          The XML data object.
protected static int SELECT_ALL
          The number of selection method to select all stars within the search area.
protected static int SELECT_BRIGHTEST
          The number of selection method to select the brightest star.
protected static int SELECT_CLOSEST
          The number of selection method to select a star whose position is closest to the specified position.
protected  int type
          The number of type.
static int TYPE_ANY_CATALOG_OR_NEW
          The number of type of distance judgement which represents to check between any star catalog position, or between detected position if no star catalog is identified.
static int TYPE_BLENDING
          The number of type of distance judgement which represents to check between only the detected stars, considering the radius of the star image.
static int TYPE_ONLY_NEG
          The number of type of distance judgement which represents to check between only most accurate position of NEG stars.
static int TYPE_ONLY_NEW
          The number of type of distance judgement which represents to check between only detected position of NEW stars.
 
Constructor Summary
DefaultIdentifier.StarExtractor(XmlData data)
          Constructs a StarExtractor with the XML data object.
 
Method Summary
protected  java.lang.Object extract(Position position, double search_area, int select_method)
          Extracts a star or stars within the specified search area.
 java.util.Vector extractAll(Position position, double search_area)
          Extracts a list of stars within the specified search area.
 XmlStar extractBrightestOne(Position position, double search_area)
          Extracts the brightest star within the specified search area.
 XmlStar extractOne(Position position, double search_area)
          Extracts a star within the specified search area whose position is closest to the specified position.
 void setType(int type)
          Sets the type.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

TYPE_ANY_CATALOG_OR_NEW

public static final int TYPE_ANY_CATALOG_OR_NEW
The number of type of distance judgement which represents to check between any star catalog position, or between detected position if no star catalog is identified.

TYPE_ONLY_NEW

public static final int TYPE_ONLY_NEW
The number of type of distance judgement which represents to check between only detected position of NEW stars.

TYPE_ONLY_NEG

public static final int TYPE_ONLY_NEG
The number of type of distance judgement which represents to check between only most accurate position of NEG stars.

TYPE_BLENDING

public static final int TYPE_BLENDING
The number of type of distance judgement which represents to check between only the detected stars, considering the radius of the star image.

SELECT_CLOSEST

protected static final int SELECT_CLOSEST
The number of selection method to select a star whose position is closest to the specified position.

SELECT_BRIGHTEST

protected static final int SELECT_BRIGHTEST
The number of selection method to select the brightest star.

SELECT_ALL

protected static final int SELECT_ALL
The number of selection method to select all stars within the search area.

type

protected int type
The number of type.

data

protected XmlData data
The XML data object.
Constructor Detail

DefaultIdentifier.StarExtractor

public DefaultIdentifier.StarExtractor(XmlData data)
Constructs a StarExtractor with the XML data object.
Parameters:
data - the XML data object.
Method Detail

setType

public void setType(int type)
Sets the type.
Parameters:
type - the number of type.

extractOne

public XmlStar extractOne(Position position,
                          double search_area)
Extracts a star within the specified search area whose position is closest to the specified position.
Parameters:
position - the base position.
search_area - the search area size.
Returns:
the closest star.

extractBrightestOne

public XmlStar extractBrightestOne(Position position,
                                   double search_area)
Extracts the brightest star within the specified search area.
Parameters:
position - the base position.
search_area - the search area size.
Returns:
the brightest star.

extractAll

public java.util.Vector extractAll(Position position,
                                   double search_area)
Extracts a list of stars within the specified search area.
Parameters:
position - the base position.
search_area - the search area size.
Returns:
the list of stars.

extract

protected java.lang.Object extract(Position position,
                                   double search_area,
                                   int select_method)
Extracts a star or stars within the specified search area.
Parameters:
position - the base position.
search_area - the search area size.
select_method - the method to select a star or stars.
Returns:
a star or a list of stars.