diff --git a/samples/cpp/OpenEXRimages_HighDynamicRange_Retina_toneMapping.cpp b/samples/cpp/OpenEXRimages_HighDynamicRange_Retina_toneMapping.cpp index 536d4cdfb7..f6e5d26b5d 100644 --- a/samples/cpp/OpenEXRimages_HighDynamicRange_Retina_toneMapping.cpp +++ b/samples/cpp/OpenEXRimages_HighDynamicRange_Retina_toneMapping.cpp @@ -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); diff --git a/samples/cpp/retinaDemo.cpp b/samples/cpp/retinaDemo.cpp index 034fa3e048..b6a592370d 100644 --- a/samples/cpp/retinaDemo.cpp +++ b/samples/cpp/retinaDemo.cpp @@ -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