|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
stella.util.ImageAmoeba
public class ImageAmoeba
This class searches the parameter space to determine the best values to use on guider images for preparing a star detection. First attempt with minimizing 7 parameters has too poor convergence, thus in the current version only three parameters are optimized with the amoeba, while others are searched with brute-force. The amoeba parameters are:
| Nested Class Summary | |
|---|---|
static class |
ImageAmoeba.Single
A single run with hard-coded low-pass size, median-size and search box. |
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
private File |
bias
Fits file to the bias frame. |
private File |
dark
Fits file to the scalable dark frame. |
private static double |
DEFDEVIATION
The default allowed squared deviation in square-pixel. |
private static double |
DEFELONGATION
The default elongation at which penalties occur. |
private static double |
DEFELONGPENALTY
The default elongation penalty. |
private static double |
DEFFAULTPENALTY
The default fault penalty. |
private static File |
DEFFITSDIR
The default fits directory. |
private static double |
DEFMAG
The default magnitude at which penalties occur. |
private static double |
DEFMAGPENALTY
The default magnitude penalty. |
private static double |
DEFSHARPMAX
The default maximum sharp which penalties occur. |
private static double |
DEFSHARPMIN
The default maximum sharp which penalties occur. |
private static double |
DEFSHARPPENALTY
The default elongation penalty. |
private static double |
DEFSTARPENALTY
The default star penalty. |
private static boolean |
DEFUPDATE
The default update behaviour. |
private Map |
fits
The map of fits files to star lists found in the position files. |
private int |
kernelsize
Size of low-pass kernel. |
static String |
KEY_DEVIATION
The tolerance in position difference. |
static String |
KEY_ELONGATION
The maximum elongation without penalty. |
static String |
KEY_ELONGPENALTY
The penalty for stars with an elongation above KEY_ELONGATION. |
static String |
KEY_FAULTPENALTY
The penalty for each non-object identified. |
static String |
KEY_FITSDIR
The fits-files directory. |
static String |
KEY_MAG
The magnitude for spurious brightness. |
static String |
KEY_MAGPENALTY
The penalty for spurious detections below KEY_MAG. |
static String |
KEY_SHARPMAX
The maximum sharpness without penalty. |
static String |
KEY_SHARPMIN
The minimum sharpness without penalty. |
static String |
KEY_SHARPPENALTY
The penalty for stars with a sharpness deviation. |
static String |
KEY_STARPENALTY
The penalty for stars not found. |
static String |
KEY_UPDATE
If true, positions are updated on the first run. |
private int |
mediansize
Size of median. |
private int |
searchsize
Size of search-box. |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
ImageAmoeba(Map prop)
Constructs a new image amoeba. |
|
| Method Summary | |
|---|---|
int |
dimension()
Returns the dimension of this multidimensional. |
double |
evaluate(VectorG param)
Evaluates the goodness of the supplied parameter. |
private double |
evaluate(VectorG param,
boolean virgin,
boolean update)
Evaluates the goodness of the supplied parameter. |
private void |
hitScan(Writer out,
Guiding.RawStar update,
List candidates,
int index)
Scans the list of current raw stars and tries to match it to the given object. |
void |
init()
Reads the directory with the fits files to store all relevant data in a list additinally, the static information on the detected stars in the positions file is extracted and stored. |
static void |
main(String[] arg)
If we supplied an argument, this is treated as the properties of the image amoeba, otherwise we use all default values. |
private void |
updatePositions(String hip,
List raw)
On the first run, we assume to start with good values. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_STARPENALTY
public static final String KEY_ELONGPENALTY
KEY_ELONGATION.
public static final String KEY_SHARPPENALTY
public static final String KEY_ELONGATION
public static final String KEY_SHARPMAX
public static final String KEY_SHARPMIN
public static final String KEY_FAULTPENALTY
public static final String KEY_MAGPENALTY
KEY_MAG.
public static final String KEY_MAG
public static final String KEY_DEVIATION
public static final String KEY_FITSDIR
public static final String KEY_UPDATE
private static final double DEFSTARPENALTY
private static final double DEFELONGPENALTY
private static final double DEFSHARPPENALTY
private static final double DEFFAULTPENALTY
private static final double DEFMAGPENALTY
private static final double DEFELONGATION
private static final double DEFSHARPMAX
private static final double DEFSHARPMIN
private static final double DEFMAG
private static final double DEFDEVIATION
private static final boolean DEFUPDATE
private static final File DEFFITSDIR
private Map fits
private File bias
private File dark
private int kernelsize
private int mediansize
private int searchsize
| Constructor Detail |
|---|
public ImageAmoeba(Map prop)
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class PropertyContainerpublic int dimension()
dimension in interface Multidimensionalpublic double evaluate(VectorG param)
evaluate in interface Multidimensional
private double evaluate(VectorG param,
boolean virgin,
boolean update)
private void updatePositions(String hip,
List raw)
private void hitScan(Writer out,
Guiding.RawStar update,
List candidates,
int index)
throws IOException
IOExceptionpublic static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||