You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/cudafilters/include/opencv2/cudafilters.hpp
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,9 @@ center.
97
97
@param borderMode Pixel extrapolation method. For details, see borderInterpolate .
98
98
@param borderVal Default border value.
99
99
100
+
@note
101
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
102
+
100
103
@sa boxFilter
101
104
*/
102
105
CV_EXPORTS_W Ptr<Filter> createBoxFilter(int srcType, int dstType, Size ksize, Point anchor = Point(-1, -1),
@@ -115,6 +118,9 @@ center.
115
118
@param borderMode Pixel extrapolation method. For details, see borderInterpolate .
116
119
@param borderVal Default border value.
117
120
121
+
@note
122
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
123
+
118
124
@sa filter2D
119
125
*/
120
126
CV_EXPORTS_W Ptr<Filter> createLinearFilter(int srcType, int dstType, InputArray kernel, Point anchor = Point(-1, -1),
@@ -134,6 +140,9 @@ applied (see getDerivKernels ).
134
140
@param borderMode Pixel extrapolation method. For details, see borderInterpolate .
135
141
@param borderVal Default border value.
136
142
143
+
@note
144
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
145
+
137
146
@sa Laplacian
138
147
*/
139
148
CV_EXPORTS_W Ptr<Filter> createLaplacianFilter(int srcType, int dstType, int ksize = 1, double scale = 1,
@@ -156,6 +165,9 @@ the aperture center.
156
165
borderInterpolate.
157
166
@param columnBorderMode Pixel extrapolation method in the horizontal direction.
158
167
168
+
@note
169
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
170
+
159
171
@sa sepFilter2D
160
172
*/
161
173
CV_EXPORTS_W Ptr<Filter> createSeparableLinearFilter(int srcType, int dstType, InputArray rowKernel, InputArray columnKernel,
@@ -178,6 +190,9 @@ applied. For details, see getDerivKernels .
178
190
@param rowBorderMode Pixel extrapolation method in the vertical direction. For details, see
179
191
borderInterpolate.
180
192
@param columnBorderMode Pixel extrapolation method in the horizontal direction.
193
+
194
+
@note
195
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
181
196
*/
182
197
CV_EXPORTS_W Ptr<Filter> createDerivFilter(int srcType, int dstType, int dx, int dy,
183
198
int ksize, bool normalize = false, double scale = 1,
@@ -196,6 +211,9 @@ applied. For details, see getDerivKernels .
196
211
borderInterpolate.
197
212
@param columnBorderMode Pixel extrapolation method in the horizontal direction.
198
213
214
+
@note
215
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
216
+
199
217
@sa Sobel
200
218
*/
201
219
CV_EXPORTS_W Ptr<Filter> createSobelFilter(int srcType, int dstType, int dx, int dy, int ksize = 3,
@@ -213,6 +231,9 @@ applied. See getDerivKernels for details.
213
231
borderInterpolate.
214
232
@param columnBorderMode Pixel extrapolation method in the horizontal direction.
215
233
234
+
@note
235
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
236
+
216
237
@sa Scharr
217
238
*/
218
239
CV_EXPORTS_W Ptr<Filter> createScharrFilter(int srcType, int dstType, int dx, int dy,
@@ -233,6 +254,9 @@ CV_EXPORTS_W Ptr<Filter> createScharrFilter(int srcType, int dstType, int dx, in
233
254
borderInterpolate.
234
255
@param columnBorderMode Pixel extrapolation method in the horizontal direction.
235
256
257
+
@note
258
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
259
+
236
260
@sa GaussianBlur
237
261
*/
238
262
CV_EXPORTS_W Ptr<Filter> createGaussianFilter(int srcType, int dstType, Size ksize,
@param iterations Number of times erosion and dilation to be applied.
260
284
285
+
@note
286
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
287
+
261
288
@sa morphologyEx
262
289
*/
263
290
CV_EXPORTS_W Ptr<Filter> createMorphologyFilter(int op, int srcType, InputArray kernel, Point anchor = Point(-1, -1), int iterations = 1);
@param anchor Anchor point. The default value (-1) means that the anchor is at the kernel center.
273
300
@param borderMode Pixel extrapolation method. For details, see borderInterpolate .
274
301
@param borderVal Default border value.
302
+
303
+
@note
304
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
@param anchor Anchor point. The default value (-1) means that the anchor is at the kernel center.
285
315
@param borderMode Pixel extrapolation method. For details, see borderInterpolate .
286
316
@param borderVal Default border value.
317
+
318
+
@note
319
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
@param anchor Anchor point. The default value (-1) means that the anchor is at the kernel center.
301
334
@param borderMode Pixel extrapolation method. For details, see borderInterpolate .
302
335
@param borderVal Default border value.
336
+
337
+
@note
338
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
303
339
*/
304
340
CV_EXPORTS_W Ptr<Filter> createRowSumFilter(int srcType, int dstType, int ksize, int anchor = -1, int borderMode = BORDER_DEFAULT, Scalar borderVal = Scalar::all(0));
305
341
@@ -311,6 +347,9 @@ CV_EXPORTS_W Ptr<Filter> createRowSumFilter(int srcType, int dstType, int ksize,
311
347
@param anchor Anchor point. The default value (-1) means that the anchor is at the kernel center.
312
348
@param borderMode Pixel extrapolation method. For details, see borderInterpolate .
313
349
@param borderVal Default border value.
350
+
351
+
@note
352
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
314
353
*/
315
354
CV_EXPORTS_W Ptr<Filter> createColumnSumFilter(int srcType, int dstType, int ksize, int anchor = -1, int borderMode = BORDER_DEFAULT, Scalar borderVal = Scalar::all(0));
316
355
@@ -329,6 +368,9 @@ Outputs an image that has been filtered using a median-filtering formulation.
329
368
Details on this algorithm can be found in:
330
369
Green, O., 2017. "Efficient scalable median filtering using histogram-based operations",
331
370
IEEE Transactions on Image Processing, 27(5), pp.2217-2228.
371
+
372
+
@note
373
+
If applied in a CUDA Stream, a distinct filter instance must be created for each Stream. Sharing a single instance across multiple streams is unsupported and may lead to undefined behavior due to stream-specific internal state.
332
374
*/
333
375
CV_EXPORTS_W Ptr<Filter> createMedianFilter(int srcType, int windowSize, int partition = 128);
0 commit comments