public class TruncatedGaussClassification extends PropertyResources implements ImageClassifying
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private int |
datamax |
private int |
datamin |
private double |
gauss |
static String |
KEY_BACKTHICK
The thickness for the background frame around searchbox.
|
static String |
KEY_BACKTHRESHOLD
For signal, ADU must be at least this sigma above background.
|
static String |
KEY_DETECTIONLIMIT
Stars have a probability higher than this value.
|
static String |
KEY_ELONGATIONMAX
The maximum elongation for a valid star detection, 0=round.
|
static String |
KEY_ELONGATIONWIDTH
The steepness of the elongation drop.
|
static String |
KEY_GLOBALWIDTH
The sharpness peak width for a valid star detection.
|
static String |
KEY_NATIVEFRAME
Thickness of frame to be skipped in addition to searchbox.
|
static String |
KEY_SHARPLOWLIMIT
Overexposed star may even fall below this.
|
static String |
KEY_SHARPLOWVALUE
Then we give this for the sharpness indicator.
|
static String |
KEY_SHARPPEAKS
The sharpness peak for a valid star detection.
|
static String |
KEY_SHARPWIDTHS
The sharpness peak width for a valid star detection.
|
static String |
KEY_STRIPDISTANCE
Read-out stripes have this maximum column offset.
|
static String |
KEY_STRIPESMAX
Read-out stripes have this maximum stroke.
|
static String |
KEY_SURESTRIPES
Strokes below this are immediately identified as stripes.
|
private PersitentAcquiring |
save |
private int |
searchbox |
private boolean |
shutter |
private int |
stripes |
private double |
truncate |
KEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
TruncatedGaussClassification(Map<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
List<StarDetection> |
detect(MImageHDU reduced,
Rectangle readout,
Dimension bin)
Converts a reduced detector image into a list of possible stars.
|
protected List<StarDetection> |
detect(MImageHDU reduced,
Rectangle readout,
Dimension bin,
double gauss,
double trunc,
int datamin,
int datamax,
int searchbox,
PersitentAcquiring save) |
private List<StarDetection> |
getStrip(List<StarDetection> principal,
Point2D center)
We scan a list of
StarProspect.RawStars and return all entries
that
are within a certain column, defined in center. |
boolean |
isShutterless() |
private boolean |
isStar(StarDetection star)
We compare the stars sharpness with an allowed list of peaks and width.
|
boolean |
isValid() |
List<StarDetection> |
removeGhosts(List<StarDetection> mirrors,
List<StarDetection> found)
Default empty.
|
List<StarDetection> |
removeMirrors(List<StarDetection> found)
Default empty.
|
List<StarDetection> |
removeSpurious(List<StarDetection> raw)
Removes the spurious detections from the list of stars detected.
|
List<StarDetection> |
removeStripes(List<StarDetection> stars)
For bright stars, read-out stripes may be
seen in the image if CCD operation is shutterless.
|
void |
setAduMinMax(int adumin,
int adumax) |
void |
setGaussFiltering(double fwhm,
double size) |
void |
setPersistantAcquiring(PersitentAcquiring unit) |
boolean |
setReadoutStripes(int adu)
Expected ADU signal for a read-out stripe on shutterless systems.
|
void |
setSearchbox(int halfbox) |
boolean |
setShutterless(boolean noshutter)
If called with true, we indicate that we have shutterless readout, i.e.
|
clone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiespublic static final String KEY_NATIVEFRAME
public static final String KEY_BACKTHICK
public static final String KEY_BACKTHRESHOLD
public static final String KEY_DETECTIONLIMIT
public static final String KEY_SHARPPEAKS
public static final String KEY_SHARPWIDTHS
public static final String KEY_GLOBALWIDTH
public static final String KEY_ELONGATIONMAX
public static final String KEY_ELONGATIONWIDTH
public static final String KEY_SHARPLOWLIMIT
public static final String KEY_SHARPLOWVALUE
public static final String KEY_SURESTRIPES
public static final String KEY_STRIPESMAX
public static final String KEY_STRIPDISTANCE
private boolean shutter
private double gauss
private double truncate
private int stripes
private int datamin
private int datamax
private int searchbox
private PersitentAcquiring save
public void setGaussFiltering(double fwhm,
double size)
public void setAduMinMax(int adumin,
int adumax)
public void setSearchbox(int halfbox)
public boolean isValid()
public void setPersistantAcquiring(PersitentAcquiring unit)
public boolean setShutterless(boolean noshutter)
setShutterless in interface ImageClassifyingnoshutter - public boolean isShutterless()
public boolean setReadoutStripes(int adu)
ImageClassifyingsetReadoutStripes in interface ImageClassifyingpublic List<StarDetection> detect(MImageHDU reduced, Rectangle readout, Dimension bin) throws BasicFitsException
ImageClassifyingdetect in interface ImageClassifyingBasicFitsExceptionprotected List<StarDetection> detect(MImageHDU reduced, Rectangle readout, Dimension bin, double gauss, double trunc, int datamin, int datamax, int searchbox, PersitentAcquiring save) throws BasicFitsException
reduced - The bias-subtracted, dark corrected and flat-fielded image.readout - Readout window on detector (for detector positions).bin - Binning used (for detector positions).gauss - FWHM-Size of Gaussian filter in unbinned pixel.trunc - Truncation radius of Gaussian filter, multiple of FWHM.datamin - Minimum ADU to account for a star signal.datamax - Maximum ADU to account for a star signal.searchbox - All detected pixel within this box belong to a star. If too small,
a star might show up as two detections. If too big, binaries may
show up only as a single detection.BasicFitsExceptionpublic List<StarDetection> removeSpurious(List<StarDetection> raw)
ImageClassifyingremoveSpurious in interface ImageClassifyingraw - All possible stars, on return without spurious detectionspublic List<StarDetection> removeStripes(List<StarDetection> stars)
KEY_STRIPESMAX, the image is
considered a read-out stripe and removed from the list.removeStripes in interface ImageClassifyingstars - All possible stars, on return without stripespublic List<StarDetection> removeMirrors(List<StarDetection> found)
removeMirrors in interface ImageClassifyingfound - public List<StarDetection> removeGhosts(List<StarDetection> mirrors, List<StarDetection> found)
removeGhosts in interface ImageClassifyingfound - private boolean isStar(StarDetection star)
star - private List<StarDetection> getStrip(List<StarDetection> principal, Point2D center)
StarProspect.RawStars and return all entries
that
are within a certain column, defined in center.