diff --git a/modules/bioinspired/src/retina_ocl.cpp b/modules/bioinspired/src/retina_ocl.cpp index 41169561f..c294ebfeb 100644 --- a/modules/bioinspired/src/retina_ocl.cpp +++ b/modules/bioinspired/src/retina_ocl.cpp @@ -1040,9 +1040,6 @@ const oclMat &MagnoRetinaFilter::runFilter(const oclMat &OPL_ON, const oclMat &O x##_slices[_SLICE_INDEX_] = x(getROI(_SLICE_INDEX_));\ } -static float _LMStoACr1Cr2[] = {1.0, 1.0, 0.0, 1.0, -1.0, 0.0, -0.5, -0.5, 1.0}; -static float _LMStoLab[] = {0.5774f, 0.5774f, 0.5774f, 0.4082f, 0.4082f, -0.8165f, 0.7071f, -0.7071f, 0.f}; - RetinaColor::RetinaColor(const unsigned int NBrows, const unsigned int NBcolumns, const int samplingMethod) : BasicRetinaFilter(NBrows, NBcolumns, 3), _RGBmosaic(NBrows * 3, NBcolumns, CV_32FC1), diff --git a/modules/bioinspired/src/retina_ocl.hpp b/modules/bioinspired/src/retina_ocl.hpp index 69a833cc4..90df0601c 100644 --- a/modules/bioinspired/src/retina_ocl.hpp +++ b/modules/bioinspired/src/retina_ocl.hpp @@ -160,14 +160,15 @@ public: }; protected: - cv::ocl::oclMat _filterOutput; - cv::ocl::oclMat _localBuffer; int _NBrows; int _NBcols; unsigned int _halfNBrows; unsigned int _halfNBcolumns; + cv::ocl::oclMat _filterOutput; + cv::ocl::oclMat _localBuffer; + std::valarray _filteringCoeficientsTable; float _v0; float _maxInputValue;