001//
002// This file is auto-generated. Please don't modify it!
003//
004package org.opencv.photo;
005
006import org.opencv.photo.Tonemap;
007
008// C++: class TonemapDrago
009/**
010 * Adaptive logarithmic mapping is a fast global tonemapping algorithm that scales the image in
011 * logarithmic domain.
012 *
013 * Since it's a global operator the same function is applied to all the pixels, it is controlled by the
014 * bias parameter.
015 *
016 * Optional saturation enhancement is possible as described in CITE: FL02 .
017 *
018 * For more information see CITE: DM03 .
019 */
020public class TonemapDrago extends Tonemap {
021
022    protected TonemapDrago(long addr) { super(addr); }
023
024    // internal usage only
025    public static TonemapDrago __fromPtr__(long addr) { return new TonemapDrago(addr); }
026
027    //
028    // C++:  float cv::TonemapDrago::getSaturation()
029    //
030
031    public float getSaturation() {
032        return getSaturation_0(nativeObj);
033    }
034
035
036    //
037    // C++:  void cv::TonemapDrago::setSaturation(float saturation)
038    //
039
040    public void setSaturation(float saturation) {
041        setSaturation_0(nativeObj, saturation);
042    }
043
044
045    //
046    // C++:  float cv::TonemapDrago::getBias()
047    //
048
049    public float getBias() {
050        return getBias_0(nativeObj);
051    }
052
053
054    //
055    // C++:  void cv::TonemapDrago::setBias(float bias)
056    //
057
058    public void setBias(float bias) {
059        setBias_0(nativeObj, bias);
060    }
061
062
063    @Override
064    protected void finalize() throws Throwable {
065        delete(nativeObj);
066    }
067
068
069
070    // C++:  float cv::TonemapDrago::getSaturation()
071    private static native float getSaturation_0(long nativeObj);
072
073    // C++:  void cv::TonemapDrago::setSaturation(float saturation)
074    private static native void setSaturation_0(long nativeObj, float saturation);
075
076    // C++:  float cv::TonemapDrago::getBias()
077    private static native float getBias_0(long nativeObj);
078
079    // C++:  void cv::TonemapDrago::setBias(float bias)
080    private static native void setBias_0(long nativeObj, float bias);
081
082    // native support for java finalize()
083    private static native void delete(long nativeObj);
084
085}