Commit 9c26387c authored by alexandre benoit's avatar alexandre benoit

updated sources to correct buildbot warnings

parent 25b482f1
...@@ -407,7 +407,7 @@ Once image information is cleaned, this channel acts as a high pass temporal fil ...@@ -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. * **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. * **V0CompressionParameter** specifies the strength of the log compression. Similar behaviors to previous description but here it enforces sensitivity of transient events.
......
...@@ -40,7 +40,7 @@ The retina can be settled up with various parameters, by default, the retina can ...@@ -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 const Mat getParvoRAW () const;// retreive original output buffers without any normalisation
// -> peripheral monochrome motion and events (transient information) channel // -> peripheral monochrome motion and events (transient information) channel
void getMagno (Mat &retinaOutput_magno); 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 const Mat getMagnoRAW () const;// retreive original output buffers without any normalisation
// reset retina buffers... equivalent to closing your eyes for some seconds // reset retina buffers... equivalent to closing your eyes for some seconds
...@@ -209,7 +209,7 @@ Retina::getMagno ...@@ -209,7 +209,7 @@ Retina::getMagno
* a Mat, this output is rescaled for standard 8bits image processing use in OpenCV * 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 Retina::getParameters
+++++++++++++++++++++ +++++++++++++++++++++
...@@ -361,7 +361,7 @@ Retina::RetinaParameters ...@@ -361,7 +361,7 @@ Retina::RetinaParameters
{};// default setup {};// default setup
bool normaliseOutput; bool normaliseOutput;
float parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau, localAdaptintegration_k; float parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau, localAdaptintegration_k;
}; };
struct OPLandIplParvoParameters OPLandIplParvo; struct OPLandIplParvoParameters OPLandIplParvo;
struct IplMagnoParameters IplMagno; struct IplMagnoParameters IplMagno;
}; };
...@@ -549,14 +549,14 @@ void RetinaImpl::getMagno(cv::Mat &retinaOutput_magno) ...@@ -549,14 +549,14 @@ void RetinaImpl::getMagno(cv::Mat &retinaOutput_magno)
// original API level data accessors : copy buffers if size matches, reallocate if required // original API level data accessors : copy buffers if size matches, reallocate if required
void RetinaImpl::getMagnoRAW(cv::Mat &magnoOutputBufferCopy){ void RetinaImpl::getMagnoRAW(cv::Mat &magnoOutputBufferCopy){
// get magno channel header // get magno channel header
const cv::Mat magnoChannel=cv::Mat(getMagnoRAW()); const cv::Mat magnoChannel=cv::Mat(getMagnoRAW());
// copy data // copy data
magnoChannel.copyTo(magnoOutputBufferCopy); magnoChannel.copyTo(magnoOutputBufferCopy);
} }
void RetinaImpl::getParvoRAW(cv::Mat &parvoOutputBufferCopy){ void RetinaImpl::getParvoRAW(cv::Mat &parvoOutputBufferCopy){
// get parvo channel header // get parvo channel header
const cv::Mat parvoChannel=cv::Mat(getMagnoRAW()); const cv::Mat parvoChannel=cv::Mat(getMagnoRAW());
// copy data // copy data
parvoChannel.copyTo(parvoOutputBufferCopy); parvoChannel.copyTo(parvoOutputBufferCopy);
} }
...@@ -564,7 +564,7 @@ void RetinaImpl::getParvoRAW(cv::Mat &parvoOutputBufferCopy){ ...@@ -564,7 +564,7 @@ void RetinaImpl::getParvoRAW(cv::Mat &parvoOutputBufferCopy){
// original API level data accessors : get buffers addresses... // original API level data accessors : get buffers addresses...
const Mat RetinaImpl::getMagnoRAW() const { const Mat RetinaImpl::getMagnoRAW() const {
// create a cv::Mat header for the valarray // 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); return Mat(_retinaFilter->getMovingContours().size(),1, CV_32F, (void*)retinaMagnoFilterOutputPTR);
} }
...@@ -573,7 +573,7 @@ const Mat RetinaImpl::getParvoRAW() const { ...@@ -573,7 +573,7 @@ const Mat RetinaImpl::getParvoRAW() const {
if (_retinaFilter->getColorMode()) // check if color mode is enabled if (_retinaFilter->getColorMode()) // check if color mode is enabled
{ {
// create a cv::Mat table (for RGB planes as a single vector) // 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); return Mat(_retinaFilter->getColorOutput().size(), 1, CV_32F, (void*)retinaParvoFilterOutputPTR);
} }
// otherwise, output is gray level // otherwise, output is gray level
......
...@@ -350,7 +350,7 @@ namespace cv ...@@ -350,7 +350,7 @@ namespace cv
for (unsigned int idColumn=2;idColumn<nbColumns-2;++idColumn) for (unsigned int idColumn=2;idColumn<nbColumns-2;++idColumn)
{ {
const unsigned int pixelIndex=idColumn+nbColumns*idLine; const unsigned int pixelIndex=idColumn+nbColumns*idLine;
// horizontal and vertical local gradients // horizontal and vertical local gradients
const float verticalGrad=fabs(luminance[pixelIndex+nbColumns]-luminance[pixelIndex-nbColumns]); const float verticalGrad=fabs(luminance[pixelIndex+nbColumns]-luminance[pixelIndex-nbColumns]);
const float horizontalGrad=fabs(luminance[pixelIndex+1]-luminance[pixelIndex-1]); const float horizontalGrad=fabs(luminance[pixelIndex+1]-luminance[pixelIndex-1]);
......
...@@ -147,4 +147,3 @@ int main(int argc, char* argv[]) { ...@@ -147,4 +147,3 @@ int main(int argc, char* argv[]) {
return 0; return 0;
} }
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