|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.OperationObservable | +--net.aerith.misao.util.Operation | +--net.aerith.misao.pixy.star_detection.DefaultStarDetector
The DefaultStarDetector
is a class to detect stars from
an image.
Field Summary | |
protected boolean |
correct_blooming_position
True when to correct the positions of blooming stars. |
protected MonoImage |
image
The image where to detect stars. |
protected int |
inner_aperture_size
The aperture size of a star. |
protected boolean |
keep_sky_image
True if the sky image is kept in the buffer even after operation. |
protected StarImageList |
list
The list of detected stars. |
protected int |
mode
The mode. |
static int |
MODE_APERTURE
The mode number which indicates to regard the amount of pixel values within the specified aperture. |
static int |
MODE_PEAK
The mode number which indicates to regard the peak value as brightness of stars. |
static int |
MODE_PIXEL_AMOUNT_OVER_THRESHOLD
The mode number which indicates to regard the amount of pixel values over the threshold as brightness of stars. |
protected int |
outer_aperture_size
The aperture size of sky around a star. |
protected MonoImage |
sky_image
The buffer of sky image. |
protected double |
threshold
The threshold value. |
protected double |
threshold_coefficient
The threshold coefficient to detect stars. |
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 | |
DefaultStarDetector(MonoImage image)
Constructs a DefaultStarDetector with a image
object where to detect stars. |
Method Summary | |
MonoImage |
getSkyImage()
Gets the sky image. |
StarImageList |
getStarList()
Gets the list of detected stars. |
void |
keepSkyImage()
Sets a flag to keep sky image in the buffer even after operation. |
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 |
setMode(int mode)
Sets the mode. |
void |
setThresholdCoefficient(double new_coef)
Sets the threshold coefficient to detect stars. |
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 |
|
Field Detail |
protected MonoImage image
protected MonoImage sky_image
protected boolean keep_sky_image
protected double threshold
protected StarImageList list
protected double threshold_coefficient
protected boolean correct_blooming_position
protected int mode
public static final int MODE_PIXEL_AMOUNT_OVER_THRESHOLD
public static final int MODE_PEAK
public static final int MODE_APERTURE
protected int inner_aperture_size
protected int outer_aperture_size
Constructor Detail |
public DefaultStarDetector(MonoImage image)
DefaultStarDetector
with a image
object where to detect stars.image
- the image where to detect stars.Method Detail |
public void keepSkyImage()
public MonoImage getSkyImage()
public StarImageList getStarList()
public void setThresholdCoefficient(double new_coef)
new_coef
- the new threshold coefficient.public void setCorrectBloomingPosition()
public void setMode(int mode)
mode
- the mode number.public void setApertureSize(int inner_size, int outer_size)
inner_size
- the aperture size of a star.outer_size
- the aperture size of sky around a star.public boolean ready()
public void operate() throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |