diff --git a/doc/tutorials/contrib/retina_model/retina_model.rst b/doc/tutorials/contrib/retina_model/retina_model.rst index e86603524..86e13e732 100644 --- a/doc/tutorials/contrib/retina_model/retina_model.rst +++ b/doc/tutorials/contrib/retina_model/retina_model.rst @@ -407,7 +407,7 @@ Once image information is cleaned, this channel acts as a high pass temporal fil * **parasolCells_k** the spatial constant of the spatial filtering effect, set it at a high value to favor low spatial frequency signals that are lower subject to residual noise. -* **amacrinCellsTemporalCutFrequency** specifies the temporal constant of the high pass filter. High values let slow transient events to be selected. +* **amacrinCellsTemporalCutFrequency** specifies the temporal constant of the high pass filter. High values let slow transient events to be selected. * **V0CompressionParameter** specifies the strength of the log compression. Similar behaviors to previous description but here it enforces sensitivity of transient events. diff --git a/modules/contrib/doc/retina/index.rst b/modules/contrib/doc/retina/index.rst index 9f1998911..92326b553 100644 --- a/modules/contrib/doc/retina/index.rst +++ b/modules/contrib/doc/retina/index.rst @@ -40,7 +40,7 @@ The retina can be settled up with various parameters, by default, the retina can const Mat getParvoRAW () const;// retreive original output buffers without any normalisation // -> peripheral monochrome motion and events (transient information) channel void getMagno (Mat &retinaOutput_magno); - void getMagnoRAW (Mat &retinaOutput_magno); // retreive original output buffers without any normalisation + void getMagnoRAW (Mat &retinaOutput_magno); // retreive original output buffers without any normalisation const Mat getMagnoRAW () const;// retreive original output buffers without any normalisation // reset retina buffers... equivalent to closing your eyes for some seconds @@ -209,7 +209,7 @@ Retina::getMagno * a Mat, this output is rescaled for standard 8bits image processing use in OpenCV - * RAW methods actually return a 1D matrix (encoding is M1, M2, ... Mn), this output is the original retina filter model output, without any quantification or rescaling. + * RAW methods actually return a 1D matrix (encoding is M1, M2,... Mn), this output is the original retina filter model output, without any quantification or rescaling. Retina::getParameters +++++++++++++++++++++ @@ -361,7 +361,7 @@ Retina::RetinaParameters {};// default setup bool normaliseOutput; float parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau, localAdaptintegration_k; - }; + }; struct OPLandIplParvoParameters OPLandIplParvo; struct IplMagnoParameters IplMagno; }; diff --git a/modules/contrib/src/retina.cpp b/modules/contrib/src/retina.cpp index dfc1d66a3..038445a71 100644 --- a/modules/contrib/src/retina.cpp +++ b/modules/contrib/src/retina.cpp @@ -549,14 +549,14 @@ void RetinaImpl::getMagno(cv::Mat &retinaOutput_magno) // original API level data accessors : copy buffers if size matches, reallocate if required void RetinaImpl::getMagnoRAW(cv::Mat &magnoOutputBufferCopy){ // get magno channel header - const cv::Mat magnoChannel=cv::Mat(getMagnoRAW()); + const cv::Mat magnoChannel=cv::Mat(getMagnoRAW()); // copy data magnoChannel.copyTo(magnoOutputBufferCopy); } void RetinaImpl::getParvoRAW(cv::Mat &parvoOutputBufferCopy){ // get parvo channel header - const cv::Mat parvoChannel=cv::Mat(getMagnoRAW()); + const cv::Mat parvoChannel=cv::Mat(getMagnoRAW()); // copy data parvoChannel.copyTo(parvoOutputBufferCopy); } @@ -564,7 +564,7 @@ void RetinaImpl::getParvoRAW(cv::Mat &parvoOutputBufferCopy){ // original API level data accessors : get buffers addresses... const Mat RetinaImpl::getMagnoRAW() const { // create a cv::Mat header for the valarray - const float *retinaMagnoFilterOutputPTR=&(_retinaFilter->getMovingContours()[0]); + const float *retinaMagnoFilterOutputPTR=&(_retinaFilter->getMovingContours()[0]); return Mat(_retinaFilter->getMovingContours().size(),1, CV_32F, (void*)retinaMagnoFilterOutputPTR); } @@ -573,7 +573,7 @@ const Mat RetinaImpl::getParvoRAW() const { if (_retinaFilter->getColorMode()) // check if color mode is enabled { // create a cv::Mat table (for RGB planes as a single vector) - const float *retinaParvoFilterOutputPTR=&(_retinaFilter->getColorOutput()[0]); + const float *retinaParvoFilterOutputPTR=&(_retinaFilter->getColorOutput()[0]); return Mat(_retinaFilter->getColorOutput().size(), 1, CV_32F, (void*)retinaParvoFilterOutputPTR); } // otherwise, output is gray level diff --git a/modules/contrib/src/retinacolor.hpp b/modules/contrib/src/retinacolor.hpp index f9b53d3d0..ff4a12e40 100644 --- a/modules/contrib/src/retinacolor.hpp +++ b/modules/contrib/src/retinacolor.hpp @@ -350,7 +350,7 @@ namespace cv for (unsigned int idColumn=2;idColumn