mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
update retina module related samples
This commit is contained in:
parent
a3ce652eb4
commit
ccdd4ebbb8
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user