Commit 9ea9cbf4 authored by Alexandre Benoit's avatar Alexandre Benoit

Updated retina access methods and OpenEXR image tone mapping demo cleaned

parent 700ef09a
......@@ -214,9 +214,11 @@ void drawPlot(const cv::Mat curve, const std::string figureTitle, const int lowe
else// -> else allocate "classical" retina :
retina = new cv::Retina("params.xml", inputImage.size());
// desactivate Magnocellular pathway processing (motion information extraction) since it is not usefull here
retina->activateMovingContoursProcessing(false);
// declare retina output buffers
cv::Mat retinaOutput_parvo;
cv::Mat retinaOutput_magno;
/////////////////////////////////////////////
// prepare displays and interactions
......@@ -253,10 +255,8 @@ void drawPlot(const cv::Mat curve, const std::string figureTitle, const int lowe
retina->run(imageInputRescaled);
// Retrieve and display retina output
retina->getParvo(retinaOutput_parvo);
retina->getMagno(retinaOutput_magno);
cv::imshow("Retina input image (with cut edges histogram for basic pixels error avoidance)", imageInputRescaled/255.0);
cv::imshow("Retina Parvocellular pathway output : 16bit=>8bit image retina tonemapping", retinaOutput_parvo);
//cv::imshow("Retina Magno", retinaOutput_magno); // not usefull in this demo, uncomment if needed
cv::waitKey(10);
}
}catch(cv::Exception e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment