001//
002// This file is auto-generated. Please don't modify it!
003//
004package org.opencv.photo;
005
006import org.opencv.core.Algorithm;
007import org.opencv.core.Mat;
008
009// C++: class Tonemap
010/**
011 * Base class for tonemapping algorithms - tools that are used to map HDR image to 8-bit range.
012 */
013public class Tonemap extends Algorithm {
014
015    protected Tonemap(long addr) { super(addr); }
016
017    // internal usage only
018    public static Tonemap __fromPtr__(long addr) { return new Tonemap(addr); }
019
020    //
021    // C++:  void cv::Tonemap::process(Mat src, Mat& dst)
022    //
023
024    /**
025     * Tonemaps image
026     *
027     *     @param src source image - CV_32FC3 Mat (float 32 bits 3 channels)
028     *     @param dst destination image - CV_32FC3 Mat with values in [0, 1] range
029     */
030    public void process(Mat src, Mat dst) {
031        process_0(nativeObj, src.nativeObj, dst.nativeObj);
032    }
033
034
035    //
036    // C++:  float cv::Tonemap::getGamma()
037    //
038
039    public float getGamma() {
040        return getGamma_0(nativeObj);
041    }
042
043
044    //
045    // C++:  void cv::Tonemap::setGamma(float gamma)
046    //
047
048    public void setGamma(float gamma) {
049        setGamma_0(nativeObj, gamma);
050    }
051
052
053    @Override
054    protected void finalize() throws Throwable {
055        delete(nativeObj);
056    }
057
058
059
060    // C++:  void cv::Tonemap::process(Mat src, Mat& dst)
061    private static native void process_0(long nativeObj, long src_nativeObj, long dst_nativeObj);
062
063    // C++:  float cv::Tonemap::getGamma()
064    private static native float getGamma_0(long nativeObj);
065
066    // C++:  void cv::Tonemap::setGamma(float gamma)
067    private static native void setGamma_0(long nativeObj, float gamma);
068
069    // native support for java finalize()
070    private static native void delete(long nativeObj);
071
072}