net.aerith.misao.pixy.star_detection
Class AdjoiningPixelDetector

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.pixy.star_detection.AdjoiningPixelDetector

public class AdjoiningPixelDetector
extends Operation

The AdjoiningPixelDetector is a class to deblend pixels of the image into some sets of adjoining pixels whose value is greater than the specified threshold.

Note that the value of the image is changed after the operation.


Field Summary
protected  MonoImage image
          The image where to deblend into some sets of adjoining pixels.
protected  java.util.Vector list
          The list of adjoining pixels.
protected  double minimum_peak
          The minimum peak value to detect a set of adjoining pixels.
protected  double threshold
          The threshold.
 
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
AdjoiningPixelDetector(MonoImage image)
          Constructs a AdjoiningPixelDetector with a image object where to deblend into some sets of adjoining pixels.
 
Method Summary
private  AdjoiningPixel detectAdjoiningPixel(int x, int y)
          Detects adjoining pixels around the specified position.
 java.util.Vector getAdjoiningPixelList()
          Gets the list of adjoining pixels.
 void operate()
          Operates.
 boolean ready()
          Returns true if the operation is ready to start.
 void setMinimumPeakValue(double new_value)
          Sets the minimum peak value to detect a set of adjoining pixels.
 void setThreshold(double new_threshold)
          Sets the threshold.
 
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 deblend into some sets of adjoining pixels.

threshold

protected double threshold
The threshold.

minimum_peak

protected double minimum_peak
The minimum peak value to detect a set of adjoining pixels.

list

protected java.util.Vector list
The list of adjoining pixels.
Constructor Detail

AdjoiningPixelDetector

public AdjoiningPixelDetector(MonoImage image)
Constructs a AdjoiningPixelDetector with a image object where to deblend into some sets of adjoining pixels.
Parameters:
image - the image where to deblend.
Method Detail

setThreshold

public void setThreshold(double new_threshold)
Sets the threshold.
Parameters:
new_threshold - the threshold value.

setMinimumPeakValue

public void setMinimumPeakValue(double new_value)
Sets the minimum peak value to detect a set of adjoining pixels.
Parameters:
new_value - the minimum peak value.

getAdjoiningPixelList

public java.util.Vector getAdjoiningPixelList()
Gets the list of adjoining pixels.
Returns:
the list of adjoining pixels.

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.

detectAdjoiningPixel

private AdjoiningPixel detectAdjoiningPixel(int x,
                                            int y)
Detects adjoining pixels around the specified position. The pixel values in the image is changed by this process.
Parameters:
x - the x position.
y - the y position.
Returns:
the adjoining pixels around the specified position.