updated sources to correct buildbot warnings
This commit is contained in:
parent
25b482f1c9
commit
9c26387ce0
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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
|
||||
|
@ -350,7 +350,7 @@ namespace cv
|
||||
for (unsigned int idColumn=2;idColumn<nbColumns-2;++idColumn)
|
||||
{
|
||||
const unsigned int pixelIndex=idColumn+nbColumns*idLine;
|
||||
|
||||
|
||||
// horizontal and vertical local gradients
|
||||
const float verticalGrad=fabs(luminance[pixelIndex+nbColumns]-luminance[pixelIndex-nbColumns]);
|
||||
const float horizontalGrad=fabs(luminance[pixelIndex+1]-luminance[pixelIndex-1]);
|
||||
|
@ -147,4 +147,3 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user