OpenCV for Unity 2.6.5
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.BioinspiredModule.Retina Class Reference

class which allows the Gipsa/Listic Labs model to be used with OpenCV. More...

Public Member Functions

void activateContoursProcessing (bool activate)
 Activate/desactivate the Parvocellular pathway processing (contours information extraction), by default, it is activated.
 
void activateMovingContoursProcessing (bool activate)
 Activate/desactivate the Magnocellular pathway processing (motion information extraction), by default, it is activated.
 
void applyFastToneMapping (Mat inputImage, Mat outputToneMappedImage)
 Method which processes an image in the aim to correct its luminance correct backlight problems, enhance details in shadows.
 
void clearBuffers ()
 Clears all retina buffers.
 
Size getInputSize ()
 Retreive retina input buffer size.
 
double double height getInputSizeAsValueTuple ()
 
Vec2d getInputSizeAsVec2d ()
 Retreive retina input buffer size.
 
void getMagno (Mat retinaOutput_magno)
 Accessor of the motion channel of the retina (models peripheral vision).
 
Mat getMagnoRAW ()
 
void getMagnoRAW (Mat retinaOutput_magno)
 Accessor of the motion channel of the retina (models peripheral vision).
 
Size getOutputSize ()
 Retreive retina output buffer size that can be different from the input if a spatial log transformation is applied.
 
double double height getOutputSizeAsValueTuple ()
 
Vec2d getOutputSizeAsVec2d ()
 Retreive retina output buffer size that can be different from the input if a spatial log transformation is applied.
 
void getParvo (Mat retinaOutput_parvo)
 Accessor of the details channel of the retina (models foveal vision).
 
Mat getParvoRAW ()
 
void getParvoRAW (Mat retinaOutput_parvo)
 Accessor of the details channel of the retina (models foveal vision).
 
string printSetup ()
 Outputs a string showing the used parameters setup.
 
void run (Mat inputImage)
 Method which allows retina to be applied on an input image,.
 
void setColorSaturation ()
 Activate color saturation as the final step of the color demultiplexing process -> this saturation is a sigmoide function applied to each channel of the demultiplexed image.
 
void setColorSaturation (bool saturateColors)
 Activate color saturation as the final step of the color demultiplexing process -> this saturation is a sigmoide function applied to each channel of the demultiplexed image.
 
void setColorSaturation (bool saturateColors, float colorSaturationValue)
 Activate color saturation as the final step of the color demultiplexing process -> this saturation is a sigmoide function applied to each channel of the demultiplexed image.
 
void setup ()
 Try to open an XML retina parameters file to adjust current retina instance setup.
 
void setup (string retinaParameterFile)
 Try to open an XML retina parameters file to adjust current retina instance setup.
 
void setup (string retinaParameterFile, bool applyDefaultSetupOnFailure)
 Try to open an XML retina parameters file to adjust current retina instance setup.
 
void setupIPLMagnoChannel ()
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupIPLMagnoChannel (bool normaliseOutput)
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta)
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau)
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k)
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency)
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter)
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau)
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau, float localAdaptintegration_k)
 Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.
 
void setupOPLandIPLParvoChannel ()
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant, float ganglionCellsSensitivity)
 Setup the OPL and IPL parvo channels (see biologocal model)
 
void write (string fs)
 Write xml/yml formated parameters information.
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new Retina __fromPtr__ (IntPtr addr)
 
static Retina create (in Vec2d inputSize)
 
static Retina create (in Vec2d inputSize, bool colorMode)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in Vec2d inputSize, bool colorMode, int colorSamplingMethod)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in Vec2d inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in Vec2d inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in Vec2d inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor, float samplingStrength)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in(double width, double height) inputSize)
 
static Retina create (in(double width, double height) inputSize, bool colorMode)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in(double width, double height) inputSize, bool colorMode, int colorSamplingMethod)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in(double width, double height) inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in(double width, double height) inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (in(double width, double height) inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor, float samplingStrength)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (Size inputSize)
 
static Retina create (Size inputSize, bool colorMode)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor, float samplingStrength)
 Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Public Attributes

double width
 Retreive retina input buffer size.
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

class which allows the Gipsa/Listic Labs model to be used with OpenCV.

This retina model allows spatio-temporal image processing (applied on still images, video sequences). As a summary, these are the retina model properties:

  • It applies a spectral whithening (mid-frequency details enhancement)
  • high frequency spatio-temporal noise reduction
  • low frequency luminance to be reduced (luminance range compression)
  • local logarithmic luminance compression allows details to be enhanced in low light conditions

USE : this model can be used basically for spatio-temporal video effects but also for : _using the getParvo method output matrix : texture analysiswith enhanced signal to noise ratio and enhanced details robust against input images luminance ranges _using the getMagno method output matrix : motion analysis also with the previously cited properties

for more information, reer to the following papers : Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011 Vision: Images, Signals and Neural Networks: Models of Neural Processing in Visual Perception (Progress in Neural Processing),By: Jeanny Herault, ISBN: 9814273686. WAPI (Tower ID): 113266891.

The retina filter includes the research contributions of phd/research collegues from which code has been redrawn by the author : take a look at the retinacolor.hpp module to discover Brice Chaix de Lavarene color mosaicing/demosaicing and the reference paper: B. Chaix de Lavarene, D. Alleysson, B. Durette, J. Herault (2007). "Efficient demosaicing through recursive filtering", IEEE International Conference on Image Processing ICIP 2007 take a look at imagelogpolprojection.hpp to discover retina spatial log sampling which originates from Barthelemy Durette phd with Jeanny Herault. A Retina / V1 cortex projection is also proposed and originates from Jeanny's discussions. more informations in the above cited Jeanny Heraults's book.

Member Function Documentation

◆ __fromPtr__()

static new Retina OpenCVForUnity.BioinspiredModule.Retina.__fromPtr__ ( IntPtr addr)
static

◆ activateContoursProcessing()

void OpenCVForUnity.BioinspiredModule.Retina.activateContoursProcessing ( bool activate)

Activate/desactivate the Parvocellular pathway processing (contours information extraction), by default, it is activated.

Parameters
activatetrue if Parvocellular (contours information extraction) output should be activated, false if not... if activated, the Parvocellular output can be retrieved using the Retina.getParvo methods

◆ activateMovingContoursProcessing()

void OpenCVForUnity.BioinspiredModule.Retina.activateMovingContoursProcessing ( bool activate)

Activate/desactivate the Magnocellular pathway processing (motion information extraction), by default, it is activated.

Parameters
activatetrue if Magnocellular output should be activated, false if not... if activated, the Magnocellular output can be retrieved using the getMagno methods

◆ applyFastToneMapping()

void OpenCVForUnity.BioinspiredModule.Retina.applyFastToneMapping ( Mat inputImage,
Mat outputToneMappedImage )

Method which processes an image in the aim to correct its luminance correct backlight problems, enhance details in shadows.

This method is designed to perform High Dynamic Range image tone mapping (compress >8bit/pixel images to 8bit/pixel). This is a simplified version of the Retina Parvocellular model (simplified version of the run/getParvo methods call) since it does not include the spatio-temporal filter modelling the Outer Plexiform Layer of the retina that performs spectral whitening and many other stuff. However, it works great for tone mapping and in a faster way.

Check the demos and experiments section to see examples and the way to perform tone mapping using the original retina model and the method.

Parameters
inputImagethe input image to process (should be coded in float format : CV_32F, CV_32FC1, CV_32F_C3, CV_32F_C4, the 4th channel won't be considered).
outputToneMappedImagethe output 8bit/channel tone mapped image (CV_8U or CV_8UC3 format).

◆ clearBuffers()

void OpenCVForUnity.BioinspiredModule.Retina.clearBuffers ( )

Clears all retina buffers.

(equivalent to opening the eyes after a long period of eye close ;o) whatchout the temporal transition occuring just after this method call.

◆ create() [1/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in Vec2d inputSize)
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ create() [2/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in Vec2d inputSize,
bool colorMode )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [3/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in Vec2d inputSize,
bool colorMode,
int colorSamplingMethod )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [4/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in Vec2d inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [5/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in Vec2d inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling,
float reductionFactor )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [6/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in Vec2d inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling,
float reductionFactor,
float samplingStrength )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [7/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in(double width, double height) inputSize)
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ create() [8/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in(double width, double height) inputSize,
bool colorMode )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [9/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in(double width, double height) inputSize,
bool colorMode,
int colorSamplingMethod )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [10/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in(double width, double height) inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [11/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in(double width, double height) inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling,
float reductionFactor )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [12/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( in(double width, double height) inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling,
float reductionFactor,
float samplingStrength )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [13/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( Size inputSize)
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ create() [14/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( Size inputSize,
bool colorMode )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [15/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( Size inputSize,
bool colorMode,
int colorSamplingMethod )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [16/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( Size inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [17/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( Size inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling,
float reductionFactor )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ create() [18/18]

static Retina OpenCVForUnity.BioinspiredModule.Retina.create ( Size inputSize,
bool colorMode,
int colorSamplingMethod,
bool useRetinaLogSampling,
float reductionFactor,
float samplingStrength )
static

Constructors from standardized interfaces : retreive a smart pointer to a Retina instance.

Parameters
inputSizethe input frame size
colorModethe chosen processing mode : with or without color processing
colorSamplingMethodspecifies which kind of color sampling will be used :
  • cv::bioinspired::RETINA_COLOR_RANDOM: each pixel position is either R, G or B in a random choice
  • cv::bioinspired::RETINA_COLOR_DIAGONAL: color sampling is RGBRGBRGB..., line 2 BRGBRGBRG..., line 3, GBRGBRGBR...
  • cv::bioinspired::RETINA_COLOR_BAYER: standard bayer sampling
useRetinaLogSamplingactivate retina log sampling, if true, the 2 following parameters can be used
reductionFactoronly usefull if param useRetinaLogSampling=true, specifies the reduction factor of the output frame (as the center (fovea) is high resolution and corners can be underscaled, then a reduction of the output is allowed without precision leak
samplingStrengthonly usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

◆ Dispose()

override void OpenCVForUnity.BioinspiredModule.Retina.Dispose ( bool disposing)
protectedvirtual

◆ getInputSize()

Size OpenCVForUnity.BioinspiredModule.Retina.getInputSize ( )

Retreive retina input buffer size.

Returns
the retina input buffer size

◆ getInputSizeAsValueTuple()

double double height OpenCVForUnity.BioinspiredModule.Retina.getInputSizeAsValueTuple ( )

◆ getInputSizeAsVec2d()

Vec2d OpenCVForUnity.BioinspiredModule.Retina.getInputSizeAsVec2d ( )

Retreive retina input buffer size.

Returns
the retina input buffer size

◆ getMagno()

void OpenCVForUnity.BioinspiredModule.Retina.getMagno ( Mat retinaOutput_magno)

Accessor of the motion channel of the retina (models peripheral vision).

Warning, getMagnoRAW methods return buffers that are not rescaled within range [0;255] while the non RAW method allows a normalized matrix to be retrieved.

Parameters
retinaOutput_magnothe output buffer (reallocated if necessary), format can be :
  • 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.

getMagnoRAW

◆ getMagnoRAW() [1/2]

Mat OpenCVForUnity.BioinspiredModule.Retina.getMagnoRAW ( )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ getMagnoRAW() [2/2]

void OpenCVForUnity.BioinspiredModule.Retina.getMagnoRAW ( Mat retinaOutput_magno)

Accessor of the motion channel of the retina (models peripheral vision).

See also
getMagno

◆ getOutputSize()

Size OpenCVForUnity.BioinspiredModule.Retina.getOutputSize ( )

Retreive retina output buffer size that can be different from the input if a spatial log transformation is applied.

Returns
the retina output buffer size

◆ getOutputSizeAsValueTuple()

double double height OpenCVForUnity.BioinspiredModule.Retina.getOutputSizeAsValueTuple ( )

◆ getOutputSizeAsVec2d()

Vec2d OpenCVForUnity.BioinspiredModule.Retina.getOutputSizeAsVec2d ( )

Retreive retina output buffer size that can be different from the input if a spatial log transformation is applied.

Returns
the retina output buffer size

◆ getParvo()

void OpenCVForUnity.BioinspiredModule.Retina.getParvo ( Mat retinaOutput_parvo)

Accessor of the details channel of the retina (models foveal vision).

Warning, getParvoRAW methods return buffers that are not rescaled within range [0;255] while the non RAW method allows a normalized matrix to be retrieved.

Parameters
retinaOutput_parvothe output buffer (reallocated if necessary), format can be :
  • a Mat, this output is rescaled for standard 8bits image processing use in OpenCV
  • RAW methods actually return a 1D matrix (encoding is R1, R2, ... Rn, G1, G2, ..., Gn, B1, B2, ...Bn), this output is the original retina filter model output, without any quantification or rescaling.

getParvoRAW

◆ getParvoRAW() [1/2]

Mat OpenCVForUnity.BioinspiredModule.Retina.getParvoRAW ( )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ getParvoRAW() [2/2]

void OpenCVForUnity.BioinspiredModule.Retina.getParvoRAW ( Mat retinaOutput_parvo)

Accessor of the details channel of the retina (models foveal vision).

See also
getParvo

◆ printSetup()

string OpenCVForUnity.BioinspiredModule.Retina.printSetup ( )

Outputs a string showing the used parameters setup.

Returns
a string which contains formated parameters information

◆ run()

void OpenCVForUnity.BioinspiredModule.Retina.run ( Mat inputImage)

Method which allows retina to be applied on an input image,.

after run, encapsulated retina module is ready to deliver its outputs using dedicated acccessors, see getParvo and getMagno methods

Parameters
inputImagethe input Mat image to be processed, can be gray level or BGR coded in any format (from 8bit to 16bits)

◆ setColorSaturation() [1/3]

void OpenCVForUnity.BioinspiredModule.Retina.setColorSaturation ( )

Activate color saturation as the final step of the color demultiplexing process -> this saturation is a sigmoide function applied to each channel of the demultiplexed image.

Parameters
saturateColorsboolean that activates color saturation (if true) or desactivate (if false)
colorSaturationValuethe saturation factor : a simple factor applied on the chrominance buffers

◆ setColorSaturation() [2/3]

void OpenCVForUnity.BioinspiredModule.Retina.setColorSaturation ( bool saturateColors)

Activate color saturation as the final step of the color demultiplexing process -> this saturation is a sigmoide function applied to each channel of the demultiplexed image.

Parameters
saturateColorsboolean that activates color saturation (if true) or desactivate (if false)
colorSaturationValuethe saturation factor : a simple factor applied on the chrominance buffers

◆ setColorSaturation() [3/3]

void OpenCVForUnity.BioinspiredModule.Retina.setColorSaturation ( bool saturateColors,
float colorSaturationValue )

Activate color saturation as the final step of the color demultiplexing process -> this saturation is a sigmoide function applied to each channel of the demultiplexed image.

Parameters
saturateColorsboolean that activates color saturation (if true) or desactivate (if false)
colorSaturationValuethe saturation factor : a simple factor applied on the chrominance buffers

◆ setup() [1/3]

void OpenCVForUnity.BioinspiredModule.Retina.setup ( )

Try to open an XML retina parameters file to adjust current retina instance setup.

  • if the xml file does not exist, then default setup is applied
  • warning, Exceptions are thrown if read XML file is not valid
Parameters
retinaParameterFilethe parameters filename
applyDefaultSetupOnFailureset to true if an error must be thrown on error

You can retrieve the current parameters structure using the method Retina::getParameters and update it before running method Retina.setup.

◆ setup() [2/3]

void OpenCVForUnity.BioinspiredModule.Retina.setup ( string retinaParameterFile)

Try to open an XML retina parameters file to adjust current retina instance setup.

  • if the xml file does not exist, then default setup is applied
  • warning, Exceptions are thrown if read XML file is not valid
Parameters
retinaParameterFilethe parameters filename
applyDefaultSetupOnFailureset to true if an error must be thrown on error

You can retrieve the current parameters structure using the method Retina::getParameters and update it before running method Retina.setup.

◆ setup() [3/3]

void OpenCVForUnity.BioinspiredModule.Retina.setup ( string retinaParameterFile,
bool applyDefaultSetupOnFailure )

Try to open an XML retina parameters file to adjust current retina instance setup.

  • if the xml file does not exist, then default setup is applied
  • warning, Exceptions are thrown if read XML file is not valid
Parameters
retinaParameterFilethe parameters filename
applyDefaultSetupOnFailureset to true if an error must be thrown on error

You can retrieve the current parameters structure using the method Retina::getParameters and update it before running method Retina.setup.

◆ setupIPLMagnoChannel() [1/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( )

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupIPLMagnoChannel() [2/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( bool normaliseOutput)

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupIPLMagnoChannel() [3/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( bool normaliseOutput,
float parasolCells_beta )

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupIPLMagnoChannel() [4/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( bool normaliseOutput,
float parasolCells_beta,
float parasolCells_tau )

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupIPLMagnoChannel() [5/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( bool normaliseOutput,
float parasolCells_beta,
float parasolCells_tau,
float parasolCells_k )

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupIPLMagnoChannel() [6/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( bool normaliseOutput,
float parasolCells_beta,
float parasolCells_tau,
float parasolCells_k,
float amacrinCellsTemporalCutFrequency )

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupIPLMagnoChannel() [7/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( bool normaliseOutput,
float parasolCells_beta,
float parasolCells_tau,
float parasolCells_k,
float amacrinCellsTemporalCutFrequency,
float V0CompressionParameter )

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupIPLMagnoChannel() [8/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( bool normaliseOutput,
float parasolCells_beta,
float parasolCells_tau,
float parasolCells_k,
float amacrinCellsTemporalCutFrequency,
float V0CompressionParameter,
float localAdaptintegration_tau )

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupIPLMagnoChannel() [9/9]

void OpenCVForUnity.BioinspiredModule.Retina.setupIPLMagnoChannel ( bool normaliseOutput,
float parasolCells_beta,
float parasolCells_tau,
float parasolCells_k,
float amacrinCellsTemporalCutFrequency,
float V0CompressionParameter,
float localAdaptintegration_tau,
float localAdaptintegration_k )

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel.

this channel processes signals output from OPL processing stage in peripheral vision, it allows motion information enhancement. It is decorrelated from the details channel. See reference papers for more details.

Parameters
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
parasolCells_betathe low pass filter gain used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), typical value is 0
parasolCells_tauthe low pass filter time constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical value is 0 (immediate response)
parasolCells_kthe low pass filter spatial constant used for local contrast adaptation at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical value is 5
amacrinCellsTemporalCutFrequencythe time constant of the first order high pass fiter of the magnocellular way (motion information channel), unit is frames, typical value is 1.2
V0CompressionParameterthe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.95
localAdaptintegration_tauspecifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
localAdaptintegration_kspecifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation

◆ setupOPLandIPLParvoChannel() [1/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [2/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode)

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [3/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode,
bool normaliseOutput )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [4/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode,
bool normaliseOutput,
float photoreceptorsLocalAdaptationSensitivity )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [5/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode,
bool normaliseOutput,
float photoreceptorsLocalAdaptationSensitivity,
float photoreceptorsTemporalConstant )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [6/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode,
bool normaliseOutput,
float photoreceptorsLocalAdaptationSensitivity,
float photoreceptorsTemporalConstant,
float photoreceptorsSpatialConstant )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [7/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode,
bool normaliseOutput,
float photoreceptorsLocalAdaptationSensitivity,
float photoreceptorsTemporalConstant,
float photoreceptorsSpatialConstant,
float horizontalCellsGain )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [8/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode,
bool normaliseOutput,
float photoreceptorsLocalAdaptationSensitivity,
float photoreceptorsTemporalConstant,
float photoreceptorsSpatialConstant,
float horizontalCellsGain,
float HcellsTemporalConstant )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [9/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode,
bool normaliseOutput,
float photoreceptorsLocalAdaptationSensitivity,
float photoreceptorsTemporalConstant,
float photoreceptorsSpatialConstant,
float horizontalCellsGain,
float HcellsTemporalConstant,
float HcellsSpatialConstant )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ setupOPLandIPLParvoChannel() [10/10]

void OpenCVForUnity.BioinspiredModule.Retina.setupOPLandIPLParvoChannel ( bool colorMode,
bool normaliseOutput,
float photoreceptorsLocalAdaptationSensitivity,
float photoreceptorsTemporalConstant,
float photoreceptorsSpatialConstant,
float horizontalCellsGain,
float HcellsTemporalConstant,
float HcellsSpatialConstant,
float ganglionCellsSensitivity )

Setup the OPL and IPL parvo channels (see biologocal model)

OPL is referred as Outer Plexiform Layer of the retina, it allows the spatio-temporal filtering which withens the spectrum and reduces spatio-temporal noise while attenuating global luminance (low frequency energy) IPL parvo is the OPL next processing stage, it refers to a part of the Inner Plexiform layer of the retina, it allows high contours sensitivity in foveal vision. See reference papers for more informations. for more informations, please have a look at the paper Benoit A., Caplier A., Durette B., Herault, J., "USING HUMAN VISUAL SYSTEM MODELING FOR BIO-INSPIRED LOW LEVEL IMAGE PROCESSING", Elsevier, Computer Vision and Image Understanding 114 (2010), pp. 758-773, DOI: http://dx.doi.org/10.1016/j.cviu.2010.01.011

Parameters
colorModespecifies if (true) color is processed of not (false) to then processing gray level image
normaliseOutputspecifies if (true) output is rescaled between 0 and 255 of not (false)
photoreceptorsLocalAdaptationSensitivitythe photoreceptors sensitivity renage is 0-1 (more log compression effect when value increases)
photoreceptorsTemporalConstantthe time constant of the first order low pass filter of the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is frames, typical value is 1 frame
photoreceptorsSpatialConstantthe spatial constant of the first order low pass filter of the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is pixels, typical value is 1 pixel
horizontalCellsGaingain of the horizontal cells network, if 0, then the mean value of the output is zero, if the parameter is near 1, then, the luminance is not filtered and is still reachable at the output, typicall value is 0
HcellsTemporalConstantthe time constant of the first order low pass filter of the horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is frames, typical value is 1 frame, as the photoreceptors
HcellsSpatialConstantthe spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
ganglionCellsSensitivitythe compression strengh of the ganglion cells local adaptation output, set a value between 0.6 and 1 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 0.7

◆ write()

void OpenCVForUnity.BioinspiredModule.Retina.write ( string fs)

Write xml/yml formated parameters information.

Parameters
fsthe filename of the xml file that will be open and writen with formatted parameters information

Member Data Documentation

◆ width

double OpenCVForUnity.BioinspiredModule.Retina.width

Retreive retina input buffer size.

Retreive retina output buffer size that can be different from the input if a spatial log transformation is applied.

Returns
the retina input buffer size
Returns
the retina output buffer size

The documentation for this class was generated from the following files: