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.calib3d;
      6 
      7 import org.opencv.core.Algorithm;
      8 import org.opencv.core.Mat;
      9 
     10 // C++: class StereoMatcher
     11 //javadoc: StereoMatcher
     12 public class StereoMatcher extends Algorithm {
     13 
     14     protected StereoMatcher(long addr) { super(addr); }
     15 
     16 
     17     public static final int
     18             DISP_SHIFT = 4,
     19             DISP_SCALE = (1 << DISP_SHIFT);
     20 
     21 
     22     //
     23     // C++:  void compute(Mat left, Mat right, Mat& disparity)
     24     //
     25 
     26     //javadoc: StereoMatcher::compute(left, right, disparity)
     27     public  void compute(Mat left, Mat right, Mat disparity)
     28     {
     29 
     30         compute_0(nativeObj, left.nativeObj, right.nativeObj, disparity.nativeObj);
     31 
     32         return;
     33     }
     34 
     35 
     36     //
     37     // C++:  int getMinDisparity()
     38     //
     39 
     40     //javadoc: StereoMatcher::getMinDisparity()
     41     public  int getMinDisparity()
     42     {
     43 
     44         int retVal = getMinDisparity_0(nativeObj);
     45 
     46         return retVal;
     47     }
     48 
     49 
     50     //
     51     // C++:  void setMinDisparity(int minDisparity)
     52     //
     53 
     54     //javadoc: StereoMatcher::setMinDisparity(minDisparity)
     55     public  void setMinDisparity(int minDisparity)
     56     {
     57 
     58         setMinDisparity_0(nativeObj, minDisparity);
     59 
     60         return;
     61     }
     62 
     63 
     64     //
     65     // C++:  int getNumDisparities()
     66     //
     67 
     68     //javadoc: StereoMatcher::getNumDisparities()
     69     public  int getNumDisparities()
     70     {
     71 
     72         int retVal = getNumDisparities_0(nativeObj);
     73 
     74         return retVal;
     75     }
     76 
     77 
     78     //
     79     // C++:  void setNumDisparities(int numDisparities)
     80     //
     81 
     82     //javadoc: StereoMatcher::setNumDisparities(numDisparities)
     83     public  void setNumDisparities(int numDisparities)
     84     {
     85 
     86         setNumDisparities_0(nativeObj, numDisparities);
     87 
     88         return;
     89     }
     90 
     91 
     92     //
     93     // C++:  int getBlockSize()
     94     //
     95 
     96     //javadoc: StereoMatcher::getBlockSize()
     97     public  int getBlockSize()
     98     {
     99 
    100         int retVal = getBlockSize_0(nativeObj);
    101 
    102         return retVal;
    103     }
    104 
    105 
    106     //
    107     // C++:  void setBlockSize(int blockSize)
    108     //
    109 
    110     //javadoc: StereoMatcher::setBlockSize(blockSize)
    111     public  void setBlockSize(int blockSize)
    112     {
    113 
    114         setBlockSize_0(nativeObj, blockSize);
    115 
    116         return;
    117     }
    118 
    119 
    120     //
    121     // C++:  int getSpeckleWindowSize()
    122     //
    123 
    124     //javadoc: StereoMatcher::getSpeckleWindowSize()
    125     public  int getSpeckleWindowSize()
    126     {
    127 
    128         int retVal = getSpeckleWindowSize_0(nativeObj);
    129 
    130         return retVal;
    131     }
    132 
    133 
    134     //
    135     // C++:  void setSpeckleWindowSize(int speckleWindowSize)
    136     //
    137 
    138     //javadoc: StereoMatcher::setSpeckleWindowSize(speckleWindowSize)
    139     public  void setSpeckleWindowSize(int speckleWindowSize)
    140     {
    141 
    142         setSpeckleWindowSize_0(nativeObj, speckleWindowSize);
    143 
    144         return;
    145     }
    146 
    147 
    148     //
    149     // C++:  int getSpeckleRange()
    150     //
    151 
    152     //javadoc: StereoMatcher::getSpeckleRange()
    153     public  int getSpeckleRange()
    154     {
    155 
    156         int retVal = getSpeckleRange_0(nativeObj);
    157 
    158         return retVal;
    159     }
    160 
    161 
    162     //
    163     // C++:  void setSpeckleRange(int speckleRange)
    164     //
    165 
    166     //javadoc: StereoMatcher::setSpeckleRange(speckleRange)
    167     public  void setSpeckleRange(int speckleRange)
    168     {
    169 
    170         setSpeckleRange_0(nativeObj, speckleRange);
    171 
    172         return;
    173     }
    174 
    175 
    176     //
    177     // C++:  int getDisp12MaxDiff()
    178     //
    179 
    180     //javadoc: StereoMatcher::getDisp12MaxDiff()
    181     public  int getDisp12MaxDiff()
    182     {
    183 
    184         int retVal = getDisp12MaxDiff_0(nativeObj);
    185 
    186         return retVal;
    187     }
    188 
    189 
    190     //
    191     // C++:  void setDisp12MaxDiff(int disp12MaxDiff)
    192     //
    193 
    194     //javadoc: StereoMatcher::setDisp12MaxDiff(disp12MaxDiff)
    195     public  void setDisp12MaxDiff(int disp12MaxDiff)
    196     {
    197 
    198         setDisp12MaxDiff_0(nativeObj, disp12MaxDiff);
    199 
    200         return;
    201     }
    202 
    203 
    204     @Override
    205     protected void finalize() throws Throwable {
    206         delete(nativeObj);
    207     }
    208 
    209 
    210 
    211     // C++:  void compute(Mat left, Mat right, Mat& disparity)
    212     private static native void compute_0(long nativeObj, long left_nativeObj, long right_nativeObj, long disparity_nativeObj);
    213 
    214     // C++:  int getMinDisparity()
    215     private static native int getMinDisparity_0(long nativeObj);
    216 
    217     // C++:  void setMinDisparity(int minDisparity)
    218     private static native void setMinDisparity_0(long nativeObj, int minDisparity);
    219 
    220     // C++:  int getNumDisparities()
    221     private static native int getNumDisparities_0(long nativeObj);
    222 
    223     // C++:  void setNumDisparities(int numDisparities)
    224     private static native void setNumDisparities_0(long nativeObj, int numDisparities);
    225 
    226     // C++:  int getBlockSize()
    227     private static native int getBlockSize_0(long nativeObj);
    228 
    229     // C++:  void setBlockSize(int blockSize)
    230     private static native void setBlockSize_0(long nativeObj, int blockSize);
    231 
    232     // C++:  int getSpeckleWindowSize()
    233     private static native int getSpeckleWindowSize_0(long nativeObj);
    234 
    235     // C++:  void setSpeckleWindowSize(int speckleWindowSize)
    236     private static native void setSpeckleWindowSize_0(long nativeObj, int speckleWindowSize);
    237 
    238     // C++:  int getSpeckleRange()
    239     private static native int getSpeckleRange_0(long nativeObj);
    240 
    241     // C++:  void setSpeckleRange(int speckleRange)
    242     private static native void setSpeckleRange_0(long nativeObj, int speckleRange);
    243 
    244     // C++:  int getDisp12MaxDiff()
    245     private static native int getDisp12MaxDiff_0(long nativeObj);
    246 
    247     // C++:  void setDisp12MaxDiff(int disp12MaxDiff)
    248     private static native void setDisp12MaxDiff_0(long nativeObj, int disp12MaxDiff);
    249 
    250     // native support for java finalize()
    251     private static native void delete(long nativeObj);
    252 
    253 }
    254