001 002// 003// This file is auto-generated. Please don't modify it! 004// 005package org.opencv.photo; 006 007import java.util.ArrayList; 008import java.util.List; 009import org.opencv.core.Mat; 010import org.opencv.core.Point; 011import org.opencv.utils.Converters; 012 013// C++: class AlignMTB 014//javadoc: AlignMTB 015public class AlignMTB extends AlignExposures { 016 017 protected AlignMTB(long addr) { super(addr); } 018 019 020 // 021 // C++: Point calculateShift(Mat img0, Mat img1) 022 // 023 024 //javadoc: AlignMTB::calculateShift(img0, img1) 025 public Point calculateShift(Mat img0, Mat img1) 026 { 027 028 Point retVal = new Point(calculateShift_0(nativeObj, img0.nativeObj, img1.nativeObj)); 029 030 return retVal; 031 } 032 033 034 // 035 // C++: bool getCut() 036 // 037 038 //javadoc: AlignMTB::getCut() 039 public boolean getCut() 040 { 041 042 boolean retVal = getCut_0(nativeObj); 043 044 return retVal; 045 } 046 047 048 // 049 // C++: int getExcludeRange() 050 // 051 052 //javadoc: AlignMTB::getExcludeRange() 053 public int getExcludeRange() 054 { 055 056 int retVal = getExcludeRange_0(nativeObj); 057 058 return retVal; 059 } 060 061 062 // 063 // C++: int getMaxBits() 064 // 065 066 //javadoc: AlignMTB::getMaxBits() 067 public int getMaxBits() 068 { 069 070 int retVal = getMaxBits_0(nativeObj); 071 072 return retVal; 073 } 074 075 076 // 077 // C++: void computeBitmaps(Mat img, Mat& tb, Mat& eb) 078 // 079 080 //javadoc: AlignMTB::computeBitmaps(img, tb, eb) 081 public void computeBitmaps(Mat img, Mat tb, Mat eb) 082 { 083 084 computeBitmaps_0(nativeObj, img.nativeObj, tb.nativeObj, eb.nativeObj); 085 086 return; 087 } 088 089 090 // 091 // C++: void process(vector_Mat src, vector_Mat dst, Mat times, Mat response) 092 // 093 094 //javadoc: AlignMTB::process(src, dst, times, response) 095 public void process(List<Mat> src, List<Mat> dst, Mat times, Mat response) 096 { 097 Mat src_mat = Converters.vector_Mat_to_Mat(src); 098 Mat dst_mat = Converters.vector_Mat_to_Mat(dst); 099 process_0(nativeObj, src_mat.nativeObj, dst_mat.nativeObj, times.nativeObj, response.nativeObj); 100 101 return; 102 } 103 104 105 // 106 // C++: void process(vector_Mat src, vector_Mat dst) 107 // 108 109 //javadoc: AlignMTB::process(src, dst) 110 public void process(List<Mat> src, List<Mat> dst) 111 { 112 Mat src_mat = Converters.vector_Mat_to_Mat(src); 113 Mat dst_mat = Converters.vector_Mat_to_Mat(dst); 114 process_1(nativeObj, src_mat.nativeObj, dst_mat.nativeObj); 115 116 return; 117 } 118 119 120 // 121 // C++: void setCut(bool value) 122 // 123 124 //javadoc: AlignMTB::setCut(value) 125 public void setCut(boolean value) 126 { 127 128 setCut_0(nativeObj, value); 129 130 return; 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++: void setMaxBits(int max_bits) 150 // 151 152 //javadoc: AlignMTB::setMaxBits(max_bits) 153 public void setMaxBits(int max_bits) 154 { 155 156 setMaxBits_0(nativeObj, max_bits); 157 158 return; 159 } 160 161 162 // 163 // C++: void shiftMat(Mat src, Mat& dst, Point shift) 164 // 165 166 //javadoc: AlignMTB::shiftMat(src, dst, shift) 167 public void shiftMat(Mat src, Mat dst, Point shift) 168 { 169 170 shiftMat_0(nativeObj, src.nativeObj, dst.nativeObj, shift.x, shift.y); 171 172 return; 173 } 174 175 176 @Override 177 protected void finalize() throws Throwable { 178 delete(nativeObj); 179 } 180 181 182 183 // C++: Point calculateShift(Mat img0, Mat img1) 184 private static native double[] calculateShift_0(long nativeObj, long img0_nativeObj, long img1_nativeObj); 185 186 // C++: bool getCut() 187 private static native boolean getCut_0(long nativeObj); 188 189 // C++: int getExcludeRange() 190 private static native int getExcludeRange_0(long nativeObj); 191 192 // C++: int getMaxBits() 193 private static native int getMaxBits_0(long nativeObj); 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++: void process(vector_Mat src, vector_Mat dst, Mat times, Mat response) 199 private static native void process_0(long nativeObj, long src_mat_nativeObj, long dst_mat_nativeObj, long times_nativeObj, long response_nativeObj); 200 201 // C++: void process(vector_Mat src, vector_Mat dst) 202 private static native void process_1(long nativeObj, long src_mat_nativeObj, long dst_mat_nativeObj); 203 204 // C++: void setCut(bool value) 205 private static native void setCut_0(long nativeObj, boolean value); 206 207 // C++: void setExcludeRange(int exclude_range) 208 private static native void setExcludeRange_0(long nativeObj, int exclude_range); 209 210 // C++: void setMaxBits(int max_bits) 211 private static native void setMaxBits_0(long nativeObj, int max_bits); 212 213 // C++: void shiftMat(Mat src, Mat& dst, Point shift) 214 private static native void shiftMat_0(long nativeObj, long src_nativeObj, long dst_nativeObj, double shift_x, double shift_y); 215 216 // native support for java finalize() 217 private static native void delete(long nativeObj); 218 219}