Skip to content

Commit 6adf012

Browse files
committed
bioinspired: prevent call ocl implementation when log sampling is enabled in retina (there is no log sampling kernel)
1 parent 5bbca68 commit 6adf012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/bioinspired/src/retina.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ RetinaImpl::RetinaImpl(const cv::Size inputSz, const bool colorMode, int colorSa
335335
_init(inputSz, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght);
336336
#ifdef HAVE_OPENCL
337337
_ocl_retina = 0;
338-
if (inputSz.width % 4 == 0)
338+
if (inputSz.width % 4 == 0 && !useRetinaLogSampling)
339339
_ocl_retina = new ocl::RetinaOCLImpl(inputSz, colorMode, colorSamplingMethod,
340340
useRetinaLogSampling, reductionFactor, samplingStrenght);
341341
#endif

0 commit comments

Comments
 (0)