net.aerith.misao.pixy.image_processing
Class DefaultBackgroundEstimator
java.lang.Object
|
+--net.aerith.misao.util.OperationObservable
|
+--net.aerith.misao.util.Operation
|
+--net.aerith.misao.pixy.image_processing.DefaultBackgroundEstimator
- public class DefaultBackgroundEstimator
- extends Operation
The DefaultBackgroundEstimator
is a class to estimate
the background mean value and deviation. It assumes that the image
is flat.
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
image
protected MonoImage image
- The image where to detect stars.
background_value
protected double background_value
- The background mean value.
background_deviation
protected double background_deviation
- The background deviation.
area_count
protected int area_count
- The number of areas to estimate the background.
filter_size
protected int filter_size
- The filter size to estimate the background.
DefaultBackgroundEstimator
public DefaultBackgroundEstimator(MonoImage image)
- Constructs a
DefaultBackgroundEstimator
with an
image object.
- Parameters:
image
- the image.
getBackground
public double getBackground()
- Gets the background mean value.
- Returns:
- the background mean value.
getBackgroundDeviation
public double getBackgroundDeviation()
- Gets the background deviation.
- Returns:
- the background deviation.
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.