|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.image.filter.Filter | +--net.aerith.misao.image.filter.BloomingCancelFilter
The BloomingCancelFilter
is an image processing filter
to cancel the blooming. The result is stored in the original image.
In the case both the blooming and streaks appear, operate the
StreakCancelFilter
at first, then operate this
BloomingCancelFilter
.
There are some requirements.
Inner Class Summary | |
protected class |
BloomingCancelFilter.BloomingStar
The BloomingStar is a set of adjoining pixels,
peak value, center position and radius of a blooming star. |
Field Summary | |
protected MonoImage |
blooming_flag_image
The blooming flag image. |
protected Position[] |
blooming_positions
The list of blooming star positions. |
protected double |
blooming_threshold_ratio
The threshold ratio to regard a pixel is saturated. |
protected boolean |
keep_blooming_flag_image
True when to keep the blooming flag image. |
protected static int |
LEFT
The value of influenced direction which represents left. |
protected static int |
RIGHT
The value of influenced direction which represents right. |
Fields inherited from class net.aerith.misao.image.filter.Filter |
monitor_set |
Constructor Summary | |
BloomingCancelFilter()
Constructs a filter. |
Method Summary | |
MonoImage |
getBloomingFlagImage()
Gets the blooming flag image. |
Position[] |
getBloomingPositions()
Gets the list of blooming star positions. |
void |
keepBloomingFlagImage()
Sets the flag to keep the blooming flag image. |
MonoImage |
operate(MonoImage image)
Operates the image processing filter and stores the result into the original image buffer. |
Methods inherited from class net.aerith.misao.image.filter.Filter |
addMonitor,
setMonitor |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected double blooming_threshold_ratio
protected boolean keep_blooming_flag_image
protected static final int LEFT
protected static final int RIGHT
protected MonoImage blooming_flag_image
protected Position[] blooming_positions
Constructor Detail |
public BloomingCancelFilter()
Method Detail |
public void keepBloomingFlagImage()
public MonoImage getBloomingFlagImage()
public Position[] getBloomingPositions()
public MonoImage operate(MonoImage image)
There are some requirements.
The process in this method assumes that the blooming influences badly towards right. But in the case it does towards left, the image is automatically reversed and processed properly.
image
- the original image to process.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |