mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Workaround for Intel platform: replace min() with ternary operator
This commit is contained in:
parent
6be7869ae8
commit
0bd4fd3a87
@ -69,8 +69,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ERODE
|
#ifdef ERODE
|
||||||
|
#ifdef INTEL_DEVICE
|
||||||
|
// workaround for bug in Intel HD graphics drivers (10.18.10.3496 or older)
|
||||||
|
#define MORPH_OP(A,B) ((A) < (B) ? (A) : (B))
|
||||||
|
#else
|
||||||
#define MORPH_OP(A,B) min((A),(B))
|
#define MORPH_OP(A,B) min((A),(B))
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef DILATE
|
#ifdef DILATE
|
||||||
#define MORPH_OP(A,B) max((A),(B))
|
#define MORPH_OP(A,B) max((A),(B))
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user