Home | History | Annotate | Download | only in src
      1 
      2 //
      3 // This file is auto-generated. Please don't modify it!
      4 //
      5 package org.opencv.photo;
      6 
      7 import java.util.ArrayList;
      8 import java.util.List;
      9 import org.opencv.core.Mat;
     10 import org.opencv.core.Point;
     11 import org.opencv.utils.Converters;
     12 
     13 // C++: class AlignMTB
     14 //javadoc: AlignMTB
     15 public class AlignMTB extends AlignExposures {
     16 
     17     protected AlignMTB(long addr) { super(addr); }
     18 
     19 
     20     //
     21     // C++:  void process(vector_Mat src, vector_Mat dst, Mat times, Mat response)
     22     //
     23 
     24     //javadoc: AlignMTB::process(src, dst, times, response)
     25     public  void process(List<Mat> src, List<Mat> dst, Mat times, Mat response)
     26     {
     27         Mat src_mat = Converters.vector_Mat_to_Mat(src);
     28         Mat dst_mat = Converters.vector_Mat_to_Mat(dst);
     29         process_0(nativeObj, src_mat.nativeObj, dst_mat.nativeObj, times.nativeObj, response.nativeObj);
     30 
     31         return;
     32     }
     33 
     34 
     35     //
     36     // C++:  void process(vector_Mat src, vector_Mat dst)
     37     //
     38 
     39     //javadoc: AlignMTB::process(src, dst)
     40     public  void process(List<Mat> src, List<Mat> dst)
     41     {
     42         Mat src_mat = Converters.vector_Mat_to_Mat(src);
     43         Mat dst_mat = Converters.vector_Mat_to_Mat(dst);
     44         process_1(nativeObj, src_mat.nativeObj, dst_mat.nativeObj);
     45 
     46         return;
     47     }
     48 
     49 
     50     //
     51     // C++:  Point calculateShift(Mat img0, Mat img1)
     52     //
     53 
     54     //javadoc: AlignMTB::calculateShift(img0, img1)
     55     public  Point calculateShift(Mat img0, Mat img1)
     56     {
     57 
     58         Point retVal = new Point(calculateShift_0(nativeObj, img0.nativeObj, img1.nativeObj));
     59 
     60         return retVal;
     61     }
     62 
     63 
     64     //
     65     // C++:  void shiftMat(Mat src, Mat& dst, Point shift)
     66     //
     67 
     68     //javadoc: AlignMTB::shiftMat(src, dst, shift)
     69     public  void shiftMat(Mat src, Mat dst, Point shift)
     70     {
     71 
     72         shiftMat_0(nativeObj, src.nativeObj, dst.nativeObj, shift.x, shift.y);
     73 
     74         return;
     75     }
     76 
     77 
     78     //
     79     // C++:  void computeBitmaps(Mat img, Mat& tb, Mat& eb)
     80     //
     81 
     82     //javadoc: AlignMTB::computeBitmaps(img, tb, eb)
     83     public  void computeBitmaps(Mat img, Mat tb, Mat eb)
     84     {
     85 
     86         computeBitmaps_0(nativeObj, img.nativeObj, tb.nativeObj, eb.nativeObj);
     87 
     88         return;
     89     }
     90 
     91 
     92     //
     93     // C++:  int getMaxBits()
     94     //
     95 
     96     //javadoc: AlignMTB::getMaxBits()
     97     public  int getMaxBits()
     98     {
     99 
    100         int retVal = getMaxBits_0(nativeObj);
    101 
    102         return retVal;
    103     }
    104 
    105 
    106     //
    107     // C++:  void setMaxBits(int max_bits)
    108     //
    109 
    110     //javadoc: AlignMTB::setMaxBits(max_bits)
    111     public  void setMaxBits(int max_bits)
    112     {
    113 
    114         setMaxBits_0(nativeObj, max_bits);
    115 
    116         return;
    117     }
    118 
    119 
    120     //
    121     // C++:  int getExcludeRange()
    122     //
    123 
    124     //javadoc: AlignMTB::getExcludeRange()
    125     public  int getExcludeRange()
    126     {
    127 
    128         int retVal = getExcludeRange_0(nativeObj);
    129 
    130         return retVal;
    131     }
    132 
    133 
    134     //
    135     // C++:  void setExcludeRange(int exclude_range)
    136     //
    137 
    138     //javadoc: AlignMTB::setExcludeRange(exclude_range)
    139     public  void setExcludeRange(int exclude_range)
    140     {
    141 
    142         setExcludeRange_0(nativeObj, exclude_range);
    143 
    144         return;
    145     }
    146 
    147 
    148     //
    149     // C++:  bool getCut()
    150     //
    151 
    152     //javadoc: AlignMTB::getCut()
    153     public  boolean getCut()
    154     {
    155 
    156         boolean retVal = getCut_0(nativeObj);
    157 
    158         return retVal;
    159     }
    160 
    161 
    162     //
    163     // C++:  void setCut(bool value)
    164     //
    165 
    166     //javadoc: AlignMTB::setCut(value)
    167     public  void setCut(boolean value)
    168     {
    169 
    170         setCut_0(nativeObj, value);
    171 
    172         return;
    173     }
    174 
    175 
    176     @Override
    177     protected void finalize() throws Throwable {
    178         delete(nativeObj);
    179     }
    180 
    181 
    182 
    183     // C++:  void process(vector_Mat src, vector_Mat dst, Mat times, Mat response)
    184     private static native void process_0(long nativeObj, long src_mat_nativeObj, long dst_mat_nativeObj, long times_nativeObj, long response_nativeObj);
    185 
    186     // C++:  void process(vector_Mat src, vector_Mat dst)
    187     private static native void process_1(long nativeObj, long src_mat_nativeObj, long dst_mat_nativeObj);
    188 
    189     // C++:  Point calculateShift(Mat img0, Mat img1)
    190     private static native double[] calculateShift_0(long nativeObj, long img0_nativeObj, long img1_nativeObj);
    191 
    192     // C++:  void shiftMat(Mat src, Mat& dst, Point shift)
    193     private static native void shiftMat_0(long nativeObj, long src_nativeObj, long dst_nativeObj, double shift_x, double shift_y);
    194 
    195     // C++:  void computeBitmaps(Mat img, Mat& tb, Mat& eb)
    196     private static native void computeBitmaps_0(long nativeObj, long img_nativeObj, long tb_nativeObj, long eb_nativeObj);
    197 
    198     // C++:  int getMaxBits()
    199     private static native int getMaxBits_0(long nativeObj);
    200 
    201     // C++:  void setMaxBits(int max_bits)
    202     private static native void setMaxBits_0(long nativeObj, int max_bits);
    203 
    204     // C++:  int getExcludeRange()
    205     private static native int getExcludeRange_0(long nativeObj);
    206 
    207     // C++:  void setExcludeRange(int exclude_range)
    208     private static native void setExcludeRange_0(long nativeObj, int exclude_range);
    209 
    210     // C++:  bool getCut()
    211     private static native boolean getCut_0(long nativeObj);
    212 
    213     // C++:  void setCut(bool value)
    214     private static native void setCut_0(long nativeObj, boolean value);
    215 
    216     // native support for java finalize()
    217     private static native void delete(long nativeObj);
    218 
    219 }
    220