projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7da129
)
Fix a bug of retinaParameters.
author
peng xiao
<hisenxpress@gmail.com>
Wed, 7 Aug 2013 06:36:24 +0000
(14:36 +0800)
committer
peng xiao
<hisenxpress@gmail.com>
Wed, 7 Aug 2013 06:36:24 +0000
(14:36 +0800)
When colorMode is set to 0 via Retina::_init method, _retinaParameters's
colorMode variable is not correctly assigned.
modules/contrib/src/retina.cpp
patch
|
blob
|
history
diff --git
a/modules/contrib/src/retina.cpp
b/modules/contrib/src/retina.cpp
index
1464896
..
6f8de96
100644
(file)
--- a/
modules/contrib/src/retina.cpp
+++ b/
modules/contrib/src/retina.cpp
@@
-357,6
+357,7
@@
void Retina::_init(const cv::Size inputSz, const bool colorMode, RETINA_COLORSAM
delete _retinaFilter;
_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
setup(_retinaParameters);