Class GIMP

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, TechnicalInformationHandler, Serializable

    public class GIMP
    extends AbstractWhiteBalanceAlgorithm
    implements TechnicalInformationHandler
    Uses the algorithm for white balancing as used by GIMP.
    The White Balance command automatically adjusts the colors by stretching the Red, Green and Blue channels separately. To do this, it discards pixel colors at each end of the Red, Green and Blue histograms which are used by only 0.05% (default) of the pixels in the image and stretches the remaining range as much as possible. The result is that pixel colors which occur very infrequently at the outer edges of the histograms (perhaps bits of dust, etc.) do not negatively influence the minimum and maximum values used for stretching the histograms. However, there may be hue shifts in the resulting image.

    For more information see:
    GIMP. White Balance.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -threshold <double> (property: threshold)
        The threshold in percentage of pixels in the image below which to discard 
        default: 0.05
        minimum: 0.0
        maximum: 100.0
    $Revision: 6652 $
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Threshold

        protected double m_Threshold
        the threshold below which pixels get discarded.
    • Constructor Detail

      • GIMP

        public GIMP()
    • Method Detail

      • getTechnicalInformation

        public TechnicalInformation getTechnicalInformation()
        Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
        Specified by:
        getTechnicalInformation in interface TechnicalInformationHandler
        the technical information about this class
      • setThreshold

        public void setThreshold​(double value)
        Sets the threshold in percent (0-100) below which to discard colors.
        value - the threshold
      • getThreshold

        public double getThreshold()
        Returns the threshold in percent (0-100) below which to discard colors.
        the threshold
      • thresholdTipText

        public String thresholdTipText()
        Returns the tip text for this property.
        tip text for this property suitable for displaying in the gui