net.aerith.misao.image.filter
Class FillIllegalRowAndColumnFilter

java.lang.Object
  |
  +--net.aerith.misao.image.filter.Filter
        |
        +--net.aerith.misao.image.filter.FillIllegalRowAndColumnFilter

public class FillIllegalRowAndColumnFilter
extends Filter

The FillIllegalRowAndColumnFilter is an image processing filter to fill the illegal rows and columns with the median pixel value. In the case of some astronomical images, some pixels from the edges have illegal value, which are too white or too black. They will cause threshold estimation failure or too many noises detection, which leads to fail the star detection or matching process. So in general, every image must be corrected previously by this filter before star detection. The result is stored in the original image.


Field Summary
protected  boolean decrease_enabled
          True when possible to decrease pixel value.
protected  boolean modified_decreased
          True when the image is modified, pixel value is decreased.
protected  boolean modified_horizontal
          True when some rows are modified.
protected  boolean modified_increased
          True when the image is modified, pixel value is increased.
protected  boolean modified_vertical
          True when some columns are modified.
 
Fields inherited from class net.aerith.misao.image.filter.Filter
monitor_set
 
Constructor Summary
FillIllegalRowAndColumnFilter()
          Constructs a filter.
 
Method Summary
 boolean isModified()
          Returns true when the image is modified.
 boolean isModifiedDecreased()
          Returns true when the image is modified, pixel value is decreased.
 boolean isModifiedHorizontal()
          Returns true when some rows are modified.
 boolean isModifiedIncreased()
          Returns true when the image is modified, pixel value is increased.
 boolean isModifiedVertical()
          Returns true when some columns are modified.
 MonoImage operate(MonoImage image)
          Operates the image processing filter and stores the result into the original image buffer.
 void setDecreaseEnabled(boolean flag)
          Sets the flag to decrease pixel value.
 
Methods inherited from class net.aerith.misao.image.filter.Filter
addMonitor, setMonitor
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

decrease_enabled

protected boolean decrease_enabled
True when possible to decrease pixel value.

modified_increased

protected boolean modified_increased
True when the image is modified, pixel value is increased.

modified_decreased

protected boolean modified_decreased
True when the image is modified, pixel value is decreased.

modified_horizontal

protected boolean modified_horizontal
True when some rows are modified.

modified_vertical

protected boolean modified_vertical
True when some columns are modified.
Constructor Detail

FillIllegalRowAndColumnFilter

public FillIllegalRowAndColumnFilter()
Constructs a filter.
Method Detail

setDecreaseEnabled

public void setDecreaseEnabled(boolean flag)
Sets the flag to decrease pixel value.
Parameters:
flag - true when possible to decrease pixel value.

isModified

public boolean isModified()
Returns true when the image is modified.
Returns:
true when the image is modified.

isModifiedIncreased

public boolean isModifiedIncreased()
Returns true when the image is modified, pixel value is increased.
Returns:
true when the image is modified, pixel value is increased.

isModifiedDecreased

public boolean isModifiedDecreased()
Returns true when the image is modified, pixel value is decreased.
Returns:
true when the image is modified, pixel value is decreased.

isModifiedHorizontal

public boolean isModifiedHorizontal()
Returns true when some rows are modified.
Returns:
true when some rows are modified.

isModifiedVertical

public boolean isModifiedVertical()
Returns true when some columns are modified.
Returns:
true when some columns are modified.

operate

public MonoImage operate(MonoImage image)
Operates the image processing filter and stores the result into the original image buffer.
Overrides:
operate in class Filter
Parameters:
image - the original image to process.
Returns:
the original image buffer.