Merge pull request #2508 from akarsakov:fix_erode_intel

This commit is contained in:
Andrey Pavlenko 2014-03-21 18:25:11 +04:00 committed by OpenCV Buildbot
commit 8ac93f9b6b

View File

@ -77,8 +77,13 @@
#endif
#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))
#endif
#endif
#ifdef DILATE
#define MORPH_OP(A,B) max((A),(B))
#endif