mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 06:53:50 +08:00
Fix a bug of retinaParameters.
When colorMode is set to 0 via Retina::_init method, _retinaParameters's colorMode variable is not correctly assigned.
This commit is contained in:
parent
a7da129984
commit
5aaed77cbc
@ -357,6 +357,7 @@ void Retina::_init(const cv::Size inputSz, const bool colorMode, RETINA_COLORSAM
|
|||||||
delete _retinaFilter;
|
delete _retinaFilter;
|
||||||
_retinaFilter = new RetinaFilter(inputSz.height, inputSz.width, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght);
|
_retinaFilter = new RetinaFilter(inputSz.height, inputSz.width, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght);
|
||||||
|
|
||||||
|
_retinaParameters.OPLandIplParvo.colorMode = colorMode;
|
||||||
// prepare the default parameter XML file with default setup
|
// prepare the default parameter XML file with default setup
|
||||||
setup(_retinaParameters);
|
setup(_retinaParameters);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user