corrected xml parameters file management in the retina interface
This commit is contained in:
parent
5de07eb784
commit
77cfdab3ff
@ -210,9 +210,9 @@ void drawPlot(const cv::Mat curve, const std::string figureTitle, const int lowe
|
|||||||
* -> if the last parameter is 'log', then activate log sampling (favour foveal vision and subsamples peripheral vision)
|
* -> if the last parameter is 'log', then activate log sampling (favour foveal vision and subsamples peripheral vision)
|
||||||
*/
|
*/
|
||||||
if (useLogSampling)
|
if (useLogSampling)
|
||||||
retina = new cv::Retina("params.xml", inputImage.size(), true, cv::RETINA_COLOR_BAYER, true, 2.0, 10.0);
|
retina = new cv::Retina(inputImage.size(), "retinaDefaultParameters_saveFile.xml", true, cv::RETINA_COLOR_BAYER, true, 2.0, 10.0);
|
||||||
else// -> else allocate "classical" retina :
|
else// -> else allocate "classical" retina :
|
||||||
retina = new cv::Retina("params.xml", inputImage.size());
|
retina = new cv::Retina(inputImage.size(), "retinaDefaultParameters_saveFile.xml");
|
||||||
|
|
||||||
// desactivate Magnocellular pathway processing (motion information extraction) since it is not usefull here
|
// desactivate Magnocellular pathway processing (motion information extraction) since it is not usefull here
|
||||||
retina->activateMovingContoursProcessing(false);
|
retina->activateMovingContoursProcessing(false);
|
||||||
|
@ -107,9 +107,9 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
// if the last parameter is 'log', then activate log sampling (favour foveal vision and subsamples peripheral vision)
|
// if the last parameter is 'log', then activate log sampling (favour foveal vision and subsamples peripheral vision)
|
||||||
if (useLogSampling)
|
if (useLogSampling)
|
||||||
myRetina = new cv::Retina("params.xml", inputFrame.size(), true, cv::RETINA_COLOR_BAYER, true, 2.0, 10.0);
|
myRetina = new cv::Retina(inputFrame.size(), "retinaDefaultParameters_saveFile.xml", true, cv::RETINA_COLOR_BAYER, true, 2.0, 10.0);
|
||||||
else// -> else allocate "classical" retina :
|
else// -> else allocate "classical" retina :
|
||||||
myRetina = new cv::Retina("params.xml", inputFrame.size());
|
myRetina = new cv::Retina(inputFrame.size(), "retinaDefaultParameters_saveFile.xml");
|
||||||
|
|
||||||
myRetina->clearBuffers();
|
myRetina->clearBuffers();
|
||||||
// declare retina output buffers
|
// declare retina output buffers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user