@@ -25,7 +25,7 @@ pub mod cudabgsegm {
25
25
pub fn create_background_subtractor_mog_def ( ) -> Result < core:: Ptr < crate :: cudabgsegm:: CUDA_BackgroundSubtractorMOG > > {
26
26
return_send ! ( via ocvrs_return) ;
27
27
unsafe { sys:: cv_cuda_createBackgroundSubtractorMOG ( ocvrs_return. as_mut_ptr ( ) ) } ;
28
- return_receive ! ( unsafe ocvrs_return => ret) ;
28
+ return_receive ! ( ocvrs_return => ret) ;
29
29
let ret = ret. into_result ( ) ?;
30
30
let ret = unsafe { core:: Ptr :: < crate :: cudabgsegm:: CUDA_BackgroundSubtractorMOG > :: opencv_from_extern ( ret) } ;
31
31
Ok ( ret)
@@ -50,7 +50,7 @@ pub mod cudabgsegm {
50
50
pub fn create_background_subtractor_mog2_def ( ) -> Result < core:: Ptr < crate :: cudabgsegm:: CUDA_BackgroundSubtractorMOG2 > > {
51
51
return_send ! ( via ocvrs_return) ;
52
52
unsafe { sys:: cv_cuda_createBackgroundSubtractorMOG2 ( ocvrs_return. as_mut_ptr ( ) ) } ;
53
- return_receive ! ( unsafe ocvrs_return => ret) ;
53
+ return_receive ! ( ocvrs_return => ret) ;
54
54
let ret = ret. into_result ( ) ?;
55
55
let ret = unsafe { core:: Ptr :: < crate :: cudabgsegm:: CUDA_BackgroundSubtractorMOG2 > :: opencv_from_extern ( ret) } ;
56
56
Ok ( ret)
@@ -74,7 +74,7 @@ pub mod cudabgsegm {
74
74
pub fn create_background_subtractor_mog2 ( history : i32 , var_threshold : f64 , detect_shadows : bool ) -> Result < core:: Ptr < crate :: cudabgsegm:: CUDA_BackgroundSubtractorMOG2 > > {
75
75
return_send ! ( via ocvrs_return) ;
76
76
unsafe { sys:: cv_cuda_createBackgroundSubtractorMOG2_int_double_bool ( history, var_threshold, detect_shadows, ocvrs_return. as_mut_ptr ( ) ) } ;
77
- return_receive ! ( unsafe ocvrs_return => ret) ;
77
+ return_receive ! ( ocvrs_return => ret) ;
78
78
let ret = ret. into_result ( ) ?;
79
79
let ret = unsafe { core:: Ptr :: < crate :: cudabgsegm:: CUDA_BackgroundSubtractorMOG2 > :: opencv_from_extern ( ret) } ;
80
80
Ok ( ret)
@@ -98,7 +98,7 @@ pub mod cudabgsegm {
98
98
pub fn create_background_subtractor_mog ( history : i32 , nmixtures : i32 , background_ratio : f64 , noise_sigma : f64 ) -> Result < core:: Ptr < crate :: cudabgsegm:: CUDA_BackgroundSubtractorMOG > > {
99
99
return_send ! ( via ocvrs_return) ;
100
100
unsafe { sys:: cv_cuda_createBackgroundSubtractorMOG_int_int_double_double ( history, nmixtures, background_ratio, noise_sigma, ocvrs_return. as_mut_ptr ( ) ) } ;
101
- return_receive ! ( unsafe ocvrs_return => ret) ;
101
+ return_receive ! ( ocvrs_return => ret) ;
102
102
let ret = ret. into_result ( ) ?;
103
103
let ret = unsafe { core:: Ptr :: < crate :: cudabgsegm:: CUDA_BackgroundSubtractorMOG > :: opencv_from_extern ( ret) } ;
104
104
Ok ( ret)
@@ -140,7 +140,7 @@ pub mod cudabgsegm {
140
140
output_array_arg ! ( background_image) ;
141
141
return_send ! ( via ocvrs_return) ;
142
142
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_getBackgroundImage_const_const__OutputArrayR_StreamR ( self . as_raw_CUDA_BackgroundSubtractorMOG ( ) , background_image. as_raw__OutputArray ( ) , stream. as_raw_mut_Stream ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
143
- return_receive ! ( unsafe ocvrs_return => ret) ;
143
+ return_receive ! ( ocvrs_return => ret) ;
144
144
let ret = ret. into_result ( ) ?;
145
145
Ok ( ret)
146
146
}
@@ -149,7 +149,7 @@ pub mod cudabgsegm {
149
149
fn get_history ( & self ) -> Result < i32 > {
150
150
return_send ! ( via ocvrs_return) ;
151
151
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_getHistory_const ( self . as_raw_CUDA_BackgroundSubtractorMOG ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
152
- return_receive ! ( unsafe ocvrs_return => ret) ;
152
+ return_receive ! ( ocvrs_return => ret) ;
153
153
let ret = ret. into_result ( ) ?;
154
154
Ok ( ret)
155
155
}
@@ -158,7 +158,7 @@ pub mod cudabgsegm {
158
158
fn get_n_mixtures ( & self ) -> Result < i32 > {
159
159
return_send ! ( via ocvrs_return) ;
160
160
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_getNMixtures_const ( self . as_raw_CUDA_BackgroundSubtractorMOG ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
161
- return_receive ! ( unsafe ocvrs_return => ret) ;
161
+ return_receive ! ( ocvrs_return => ret) ;
162
162
let ret = ret. into_result ( ) ?;
163
163
Ok ( ret)
164
164
}
@@ -167,7 +167,7 @@ pub mod cudabgsegm {
167
167
fn get_background_ratio ( & self ) -> Result < f64 > {
168
168
return_send ! ( via ocvrs_return) ;
169
169
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_getBackgroundRatio_const ( self . as_raw_CUDA_BackgroundSubtractorMOG ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
170
- return_receive ! ( unsafe ocvrs_return => ret) ;
170
+ return_receive ! ( ocvrs_return => ret) ;
171
171
let ret = ret. into_result ( ) ?;
172
172
Ok ( ret)
173
173
}
@@ -176,7 +176,7 @@ pub mod cudabgsegm {
176
176
fn get_noise_sigma ( & self ) -> Result < f64 > {
177
177
return_send ! ( via ocvrs_return) ;
178
178
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_getNoiseSigma_const ( self . as_raw_CUDA_BackgroundSubtractorMOG ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
179
- return_receive ! ( unsafe ocvrs_return => ret) ;
179
+ return_receive ! ( ocvrs_return => ret) ;
180
180
let ret = ret. into_result ( ) ?;
181
181
Ok ( ret)
182
182
}
@@ -193,7 +193,7 @@ pub mod cudabgsegm {
193
193
output_array_arg ! ( fgmask) ;
194
194
return_send ! ( via ocvrs_return) ;
195
195
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_apply_const__InputArrayR_const__OutputArrayR_double_StreamR ( self . as_raw_mut_CUDA_BackgroundSubtractorMOG ( ) , image. as_raw__InputArray ( ) , fgmask. as_raw__OutputArray ( ) , learning_rate, stream. as_raw_mut_Stream ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
196
- return_receive ! ( unsafe ocvrs_return => ret) ;
196
+ return_receive ! ( ocvrs_return => ret) ;
197
197
let ret = ret. into_result ( ) ?;
198
198
Ok ( ret)
199
199
}
@@ -202,7 +202,7 @@ pub mod cudabgsegm {
202
202
fn get_background_image_1 ( & mut self , background_image : & mut impl core:: GpuMatTrait , stream : & mut impl core:: StreamTrait ) -> Result < ( ) > {
203
203
return_send ! ( via ocvrs_return) ;
204
204
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_getBackgroundImage_GpuMatR_StreamR ( self . as_raw_mut_CUDA_BackgroundSubtractorMOG ( ) , background_image. as_raw_mut_GpuMat ( ) , stream. as_raw_mut_Stream ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
205
- return_receive ! ( unsafe ocvrs_return => ret) ;
205
+ return_receive ! ( ocvrs_return => ret) ;
206
206
let ret = ret. into_result ( ) ?;
207
207
Ok ( ret)
208
208
}
@@ -211,7 +211,7 @@ pub mod cudabgsegm {
211
211
fn set_history ( & mut self , nframes : i32 ) -> Result < ( ) > {
212
212
return_send ! ( via ocvrs_return) ;
213
213
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_setHistory_int ( self . as_raw_mut_CUDA_BackgroundSubtractorMOG ( ) , nframes, ocvrs_return. as_mut_ptr ( ) ) } ;
214
- return_receive ! ( unsafe ocvrs_return => ret) ;
214
+ return_receive ! ( ocvrs_return => ret) ;
215
215
let ret = ret. into_result ( ) ?;
216
216
Ok ( ret)
217
217
}
@@ -220,7 +220,7 @@ pub mod cudabgsegm {
220
220
fn set_n_mixtures ( & mut self , nmix : i32 ) -> Result < ( ) > {
221
221
return_send ! ( via ocvrs_return) ;
222
222
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_setNMixtures_int ( self . as_raw_mut_CUDA_BackgroundSubtractorMOG ( ) , nmix, ocvrs_return. as_mut_ptr ( ) ) } ;
223
- return_receive ! ( unsafe ocvrs_return => ret) ;
223
+ return_receive ! ( ocvrs_return => ret) ;
224
224
let ret = ret. into_result ( ) ?;
225
225
Ok ( ret)
226
226
}
@@ -229,7 +229,7 @@ pub mod cudabgsegm {
229
229
fn set_background_ratio ( & mut self , background_ratio : f64 ) -> Result < ( ) > {
230
230
return_send ! ( via ocvrs_return) ;
231
231
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_setBackgroundRatio_double ( self . as_raw_mut_CUDA_BackgroundSubtractorMOG ( ) , background_ratio, ocvrs_return. as_mut_ptr ( ) ) } ;
232
- return_receive ! ( unsafe ocvrs_return => ret) ;
232
+ return_receive ! ( ocvrs_return => ret) ;
233
233
let ret = ret. into_result ( ) ?;
234
234
Ok ( ret)
235
235
}
@@ -238,7 +238,7 @@ pub mod cudabgsegm {
238
238
fn set_noise_sigma ( & mut self , noise_sigma : f64 ) -> Result < ( ) > {
239
239
return_send ! ( via ocvrs_return) ;
240
240
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG_setNoiseSigma_double ( self . as_raw_mut_CUDA_BackgroundSubtractorMOG ( ) , noise_sigma, ocvrs_return. as_mut_ptr ( ) ) } ;
241
- return_receive ! ( unsafe ocvrs_return => ret) ;
241
+ return_receive ! ( ocvrs_return => ret) ;
242
242
let ret = ret. into_result ( ) ?;
243
243
Ok ( ret)
244
244
}
@@ -318,7 +318,7 @@ pub mod cudabgsegm {
318
318
output_array_arg ! ( background_image) ;
319
319
return_send ! ( via ocvrs_return) ;
320
320
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG2_getBackgroundImage_const_const__OutputArrayR_StreamR ( self . as_raw_CUDA_BackgroundSubtractorMOG2 ( ) , background_image. as_raw__OutputArray ( ) , stream. as_raw_mut_Stream ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
321
- return_receive ! ( unsafe ocvrs_return => ret) ;
321
+ return_receive ! ( ocvrs_return => ret) ;
322
322
let ret = ret. into_result ( ) ?;
323
323
Ok ( ret)
324
324
}
@@ -335,7 +335,7 @@ pub mod cudabgsegm {
335
335
output_array_arg ! ( fgmask) ;
336
336
return_send ! ( via ocvrs_return) ;
337
337
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG2_apply_const__InputArrayR_const__OutputArrayR_double_StreamR ( self . as_raw_mut_CUDA_BackgroundSubtractorMOG2 ( ) , image. as_raw__InputArray ( ) , fgmask. as_raw__OutputArray ( ) , learning_rate, stream. as_raw_mut_Stream ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
338
- return_receive ! ( unsafe ocvrs_return => ret) ;
338
+ return_receive ! ( ocvrs_return => ret) ;
339
339
let ret = ret. into_result ( ) ?;
340
340
Ok ( ret)
341
341
}
@@ -344,7 +344,7 @@ pub mod cudabgsegm {
344
344
fn get_background_image_1 ( & mut self , background_image : & mut impl core:: GpuMatTrait , stream : & mut impl core:: StreamTrait ) -> Result < ( ) > {
345
345
return_send ! ( via ocvrs_return) ;
346
346
unsafe { sys:: cv_cuda_BackgroundSubtractorMOG2_getBackgroundImage_GpuMatR_StreamR ( self . as_raw_mut_CUDA_BackgroundSubtractorMOG2 ( ) , background_image. as_raw_mut_GpuMat ( ) , stream. as_raw_mut_Stream ( ) , ocvrs_return. as_mut_ptr ( ) ) } ;
347
- return_receive ! ( unsafe ocvrs_return => ret) ;
347
+ return_receive ! ( ocvrs_return => ret) ;
348
348
let ret = ret. into_result ( ) ?;
349
349
Ok ( ret)
350
350
}
0 commit comments