```java.lang.Object
|
|
```

The `DefaultLevelAdjustmentSet` represents a set of the original statistics and the current level to view of an image.

In this constructor, the minimum and maximum value is set properly so that the stars on the image will be visible by default on the screen. In order to set the value properly even in the case of an image half of whose area is filled with illegal value like 0, it calculates the minimum and maximum value in the following steps:

1. Creates a histogram.
2. Smoothes the histogram by median filter.
3. Creates a mini image based on the smoothed histogram.
4. Calculates the average and standard deviation of pixel values.
5. Set the minimum as average - 1.0 * deviation, the maximum as average + 4.25 * deviation.

Sometimes there may be a few extremely high-value pixels. In that case, the division step of the histogram will be very rough and the average and standard deviation calculated in the above steps will be inaccurate. So in order to avoid the influence of rare high-value pixels, only values of common pixels are used to create the histogram. Actually, it calculates the minimum and maximum value in the following steps:

1. Creates a histogram.
2. Smoothes the histogram by median filter.
3. Estimates the range of common pixels.
4. Creates a histogram using only the common pixels.
5. Smoothes the histogram by median filter.
6. Creates a mini image based on the smoothed histogram.
7. Calculates the average and standard deviation of pixel values.
8. Set the minimum as average - 1.0 * deviation, the maximum as average + 4.25 * deviation.

 Fields inherited from class net.aerith.misao.image.LevelAdjustmentSet ```current_maximum, current_minimum, original_statistics```

 Constructor Summary `DefaultLevelAdjustmentSet(MonoImage mono_image)`           Constructs a `DefaultLevelAdjustmentSet` based on the specified image.

 Methods inherited from class java.lang.Object ```, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait```

 Constructor Detail

`public DefaultLevelAdjustmentSet(MonoImage mono_image)`
Constructs a `DefaultLevelAdjustmentSet` based on the specified image.
`mono_image` - the image.