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.


Field Summary
protected  int area_count
          The number of areas to estimate the background.
protected  double background_deviation
          The background deviation.
protected  double background_value
          The background mean value.
protected  int filter_size
          The filter size to estimate the background.
protected  MonoImage image
          The image where 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
DefaultBackgroundEstimator(MonoImage image)
          Constructs a DefaultBackgroundEstimator with an image object.
 
Method Summary
 double getBackground()
          Gets the background mean value.
 double getBackgroundDeviation()
          Gets the background deviation.
 void operate()
          Operates.
 boolean ready()
          Returns true if the operation is ready to start.
 
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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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.
Constructor Detail

DefaultBackgroundEstimator

public DefaultBackgroundEstimator(MonoImage image)
Constructs a DefaultBackgroundEstimator with an image object.
Parameters:
image - the image.
Method Detail

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.