From ea1a64477f852285c15e29bdd1e8f536f7e3f737 Mon Sep 17 00:00:00 2001 From: alexandre benoit Date: Sat, 27 Apr 2013 22:39:28 +0200 Subject: [PATCH] updated tutorial with new retina interface use --- samples/cpp/tutorial_code/contrib/retina_tutorial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/cpp/tutorial_code/contrib/retina_tutorial.cpp b/samples/cpp/tutorial_code/contrib/retina_tutorial.cpp index e1ee118..c0cd5f4 100644 --- a/samples/cpp/tutorial_code/contrib/retina_tutorial.cpp +++ b/samples/cpp/tutorial_code/contrib/retina_tutorial.cpp @@ -99,10 +99,10 @@ int main(int argc, char* argv[]) { // if the last parameter is 'log', then activate log sampling (favour foveal vision and subsamples peripheral vision) if (useLogSampling) { - myRetina = new cv::Retina(inputFrame.size(), true, cv::RETINA_COLOR_BAYER, true, 2.0, 10.0); + myRetina = cv::createRetina(inputFrame.size(), true, cv::RETINA_COLOR_BAYER, true, 2.0, 10.0); } else// -> else allocate "classical" retina : - myRetina = new cv::Retina(inputFrame.size()); + myRetina = cv::createRetina(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"); -- 2.7.4