001//
002// This file is auto-generated. Please don't modify it!
003//
004package org.opencv.photo;
005
006import java.util.ArrayList;
007import java.util.List;
008import org.opencv.core.Mat;
009import org.opencv.photo.MergeExposures;
010import org.opencv.utils.Converters;
011
012// C++: class MergeDebevec
013/**
014 * The resulting HDR image is calculated as weighted average of the exposures considering exposure
015 * values and camera response.
016 *
017 * For more information see CITE: DM97 .
018 */
019public class MergeDebevec extends MergeExposures {
020
021    protected MergeDebevec(long addr) { super(addr); }
022
023    // internal usage only
024    public static MergeDebevec __fromPtr__(long addr) { return new MergeDebevec(addr); }
025
026    //
027    // C++:  void cv::MergeDebevec::process(vector_Mat src, Mat& dst, Mat times, Mat response)
028    //
029
030    public void process(List<Mat> src, Mat dst, Mat times, Mat response) {
031        Mat src_mat = Converters.vector_Mat_to_Mat(src);
032        process_0(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj, response.nativeObj);
033    }
034
035
036    //
037    // C++:  void cv::MergeDebevec::process(vector_Mat src, Mat& dst, Mat times)
038    //
039
040    public void process(List<Mat> src, Mat dst, Mat times) {
041        Mat src_mat = Converters.vector_Mat_to_Mat(src);
042        process_1(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj);
043    }
044
045
046    @Override
047    protected void finalize() throws Throwable {
048        delete(nativeObj);
049    }
050
051
052
053    // C++:  void cv::MergeDebevec::process(vector_Mat src, Mat& dst, Mat times, Mat response)
054    private static native void process_0(long nativeObj, long src_mat_nativeObj, long dst_nativeObj, long times_nativeObj, long response_nativeObj);
055
056    // C++:  void cv::MergeDebevec::process(vector_Mat src, Mat& dst, Mat times)
057    private static native void process_1(long nativeObj, long src_mat_nativeObj, long dst_nativeObj, long times_nativeObj);
058
059    // native support for java finalize()
060    private static native void delete(long nativeObj);
061
062}