update retina module related samples

This commit is contained in:
Alexandre Benoit 2011-11-10 13:41:29 +00:00
parent a3ce652eb4
commit ccdd4ebbb8
2 changed files with 8 additions and 4 deletions

View File

@ -212,10 +212,12 @@ void drawPlot(const cv::Mat curve, const std::string figureTitle, const int lowe
if (useLogSampling)
{
retina = new cv::Retina(inputImage.size(),true, cv::RETINA_COLOR_BAYER, true, 2.0, 10.0);
retina->setup("retinaDefaultParameters_saveFile.xml");
}
else// -> else allocate "classical" retina :
retina = new cv::Retina(inputImage.size(), "retinaDefaultParameters_saveFile.xml");
retina = new cv::Retina(inputImage.size());
// save default retina parameters file in order to let you see this and maybe modify it and reload using method "setup"
retina->write("RetinaDefaultParameters.xml");
// desactivate Magnocellular pathway processing (motion information extraction) since it is not usefull here
retina->activateMovingContoursProcessing(false);

View File

@ -109,10 +109,12 @@ int main(int argc, char* argv[]) {
if (useLogSampling)
{
myRetina = new cv::Retina(inputFrame.size(), true, cv::RETINA_COLOR_BAYER, true, 2.0, 10.0);
myRetina->setup("retinaDefaultParameters_saveFile.xml");
}
else// -> else allocate "classical" retina :
myRetina = new cv::Retina(inputFrame.size(), "retinaDefaultParameters_saveFile.xml");
myRetina = new cv::Retina(inputFrame.size());
// save default retina parameters file in order to let you see this and maybe modify it and reload using method "setup"
myRetina->write("RetinaDefaultParameters.xml");
myRetina->clearBuffers();
// declare retina output buffers