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