public class Retina extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
Retina(long addr) |
Modifier and Type | Method and Description |
---|---|
static Retina |
__fromPtr__(long addr) |
void |
activateContoursProcessing(boolean activate)
Activate/desactivate the Parvocellular pathway processing (contours information extraction), by
default, it is activated
|
void |
activateMovingContoursProcessing(boolean 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
(equivalent to opening the eyes after a long period of eye close ;o) whatchout the temporal
transition occuring just after this method call.
|
static Retina |
create(Size inputSize) |
static Retina |
create(Size inputSize,
boolean colorMode)
Constructors from standardized interfaces : retreive a smart pointer to a Retina instance
|
static Retina |
create(Size inputSize,
boolean colorMode,
int colorSamplingMethod)
Constructors from standardized interfaces : retreive a smart pointer to a Retina instance
|
static Retina |
create(Size inputSize,
boolean colorMode,
int colorSamplingMethod,
boolean useRetinaLogSampling)
Constructors from standardized interfaces : retreive a smart pointer to a Retina instance
|
static Retina |
create(Size inputSize,
boolean colorMode,
int colorSamplingMethod,
boolean useRetinaLogSampling,
float reductionFactor)
Constructors from standardized interfaces : retreive a smart pointer to a Retina instance
|
static Retina |
create(Size inputSize,
boolean colorMode,
int colorSamplingMethod,
boolean useRetinaLogSampling,
float reductionFactor,
float samplingStrenght)
Constructors from standardized interfaces : retreive a smart pointer to a Retina instance
|
protected void |
finalize() |
Size |
getInputSize()
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
|
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,
after run, encapsulated retina module is ready to deliver its outputs using dedicated
acccessors, see getParvo and getMagno methods
|
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(boolean 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(boolean 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
if the xml file does not exist, then default setup is applied
warning, Exceptions are thrown if read XML file is not valid
You can retrieve the current parameters structure using the method Retina::getParameters and update
it before running method Retina::setup.
|
void |
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
|
void |
setup(String retinaParameterFile,
boolean 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
|
void |
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.
|
void |
setupIPLMagnoChannel(boolean 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.
|
void |
setupIPLMagnoChannel(boolean 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.
|
void |
setupIPLMagnoChannel(boolean 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.
|
void |
setupIPLMagnoChannel(boolean 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.
|
void |
setupIPLMagnoChannel(boolean 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.
|
void |
setupIPLMagnoChannel(boolean 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.
|
void |
setupIPLMagnoChannel(boolean 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.
|
void |
setupIPLMagnoChannel(boolean 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.
|
void |
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.
|
void |
setupOPLandIPLParvoChannel(boolean 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.
|
void |
setupOPLandIPLParvoChannel(boolean colorMode,
boolean 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.
|
void |
setupOPLandIPLParvoChannel(boolean colorMode,
boolean 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.
|
void |
setupOPLandIPLParvoChannel(boolean colorMode,
boolean 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.
|
void |
setupOPLandIPLParvoChannel(boolean colorMode,
boolean 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.
|
void |
setupOPLandIPLParvoChannel(boolean colorMode,
boolean 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.
|
void |
setupOPLandIPLParvoChannel(boolean colorMode,
boolean 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.
|
void |
setupOPLandIPLParvoChannel(boolean colorMode,
boolean 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.
|
void |
setupOPLandIPLParvoChannel(boolean colorMode,
boolean 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.
|
void |
write(String fs)
Write xml/yml formated parameters information
|
clear, empty, getDefaultName, getNativeObjAddr, save
public static Retina __fromPtr__(long addr)
public Mat getMagnoRAW()
public Mat getParvoRAW()
public static Retina create(Size inputSize, boolean colorMode, int colorSamplingMethod, boolean useRetinaLogSampling, float reductionFactor, float samplingStrenght)
inputSize
- the input frame sizecolorMode
- the chosen processing mode : with or without color processingcolorSamplingMethod
- specifies which kind of color sampling will be used :
useRetinaLogSampling
- activate retina log sampling, if true, the 2 following parameters can
be usedreductionFactor
- only 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 leaksamplingStrenght
- only usefull if param useRetinaLogSampling=true, specifies the strenght of
the log scale that is applied
public static Retina create(Size inputSize, boolean colorMode, int colorSamplingMethod, boolean useRetinaLogSampling, float reductionFactor)
inputSize
- the input frame sizecolorMode
- the chosen processing mode : with or without color processingcolorSamplingMethod
- specifies which kind of color sampling will be used :
useRetinaLogSampling
- activate retina log sampling, if true, the 2 following parameters can
be usedreductionFactor
- only 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
the log scale that is applied
public static Retina create(Size inputSize, boolean colorMode, int colorSamplingMethod, boolean useRetinaLogSampling)
inputSize
- the input frame sizecolorMode
- the chosen processing mode : with or without color processingcolorSamplingMethod
- specifies which kind of color sampling will be used :
useRetinaLogSampling
- activate retina log sampling, if true, the 2 following parameters can
be used
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
the log scale that is applied
public static Retina create(Size inputSize, boolean colorMode, int colorSamplingMethod)
inputSize
- the input frame sizecolorMode
- the chosen processing mode : with or without color processingcolorSamplingMethod
- specifies which kind of color sampling will be used :
public static Retina create(Size inputSize, boolean colorMode)
inputSize
- the input frame sizecolorMode
- the chosen processing mode : with or without color processing
public Size getInputSize()
public Size getOutputSize()
public String printSetup()
public void activateContoursProcessing(boolean activate)
activate
- true if Parvocellular (contours information extraction) output should be
activated, false if not... if activated, the Parvocellular output can be retrieved using the
Retina::getParvo methodspublic void activateMovingContoursProcessing(boolean activate)
activate
- true if Magnocellular output should be activated, false if not... if activated,
the Magnocellular output can be retrieved using the getMagno methodspublic void applyFastToneMapping(Mat inputImage, Mat outputToneMappedImage)
inputImage
- the 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).outputToneMappedImage
- the output 8bit/channel tone mapped image (CV_8U or CV_8UC3 format).public void clearBuffers()
public void getMagno(Mat retinaOutput_magno)
retinaOutput_magno
- the output buffer (reallocated if necessary), format can be :
public void getMagnoRAW(Mat retinaOutput_magno)
retinaOutput_magno
- automatically generatedpublic void getParvo(Mat retinaOutput_parvo)
retinaOutput_parvo
- the output buffer (reallocated if necessary), format can be :
public void getParvoRAW(Mat retinaOutput_parvo)
retinaOutput_parvo
- automatically generatedpublic void run(Mat inputImage)
inputImage
- the input Mat image to be processed, can be gray level or BGR coded in any
format (from 8bit to 16bits)public void setColorSaturation(boolean saturateColors, float colorSaturationValue)
saturateColors
- boolean that activates color saturation (if true) or desactivate (if false)colorSaturationValue
- the saturation factor : a simple factor applied on the chrominance
bufferspublic void setColorSaturation(boolean saturateColors)
saturateColors
- boolean that activates color saturation (if true) or desactivate (if false)
bufferspublic void setColorSaturation()
public void setup(String retinaParameterFile, boolean applyDefaultSetupOnFailure)
retinaParameterFile
- the parameters filenameapplyDefaultSetupOnFailure
- set to true if an error must be thrown on error
public void setup(String retinaParameterFile)
retinaParameterFile
- the parameters filename
public void setup()
public void setupIPLMagnoChannel(boolean normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau, float localAdaptintegration_k)
normaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)parasolCells_beta
- the low pass filter gain used for local contrast adaptation at the
IPL level of the retina (for ganglion cells local adaptation), typical value is 0parasolCells_tau
- the 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_k
- the 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 5amacrinCellsTemporalCutFrequency
- the time constant of the first order high pass fiter of
the magnocellular way (motion information channel), unit is frames, typical value is 1.2V0CompressionParameter
- the 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.95localAdaptintegration_tau
- specifies the temporal constant of the low pas filter
involved in the computation of the local "motion mean" for the local adaptation computationlocalAdaptintegration_k
- specifies the spatial constant of the low pas filter involved
in the computation of the local "motion mean" for the local adaptation computationpublic void setupIPLMagnoChannel(boolean normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau)
normaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)parasolCells_beta
- the low pass filter gain used for local contrast adaptation at the
IPL level of the retina (for ganglion cells local adaptation), typical value is 0parasolCells_tau
- the 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_k
- the 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 5amacrinCellsTemporalCutFrequency
- the time constant of the first order high pass fiter of
the magnocellular way (motion information channel), unit is frames, typical value is 1.2V0CompressionParameter
- the 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.95localAdaptintegration_tau
- specifies the temporal constant of the low pas filter
involved in the computation of the local "motion mean" for the local adaptation computation
in the computation of the local "motion mean" for the local adaptation computationpublic void setupIPLMagnoChannel(boolean normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter)
normaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)parasolCells_beta
- the low pass filter gain used for local contrast adaptation at the
IPL level of the retina (for ganglion cells local adaptation), typical value is 0parasolCells_tau
- the 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_k
- the 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 5amacrinCellsTemporalCutFrequency
- the time constant of the first order high pass fiter of
the magnocellular way (motion information channel), unit is frames, typical value is 1.2V0CompressionParameter
- the 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
involved in the computation of the local "motion mean" for the local adaptation computation
in the computation of the local "motion mean" for the local adaptation computationpublic void setupIPLMagnoChannel(boolean normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency)
normaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)parasolCells_beta
- the low pass filter gain used for local contrast adaptation at the
IPL level of the retina (for ganglion cells local adaptation), typical value is 0parasolCells_tau
- the 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_k
- the 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 5amacrinCellsTemporalCutFrequency
- the time constant of the first order high pass fiter of
the magnocellular way (motion information channel), unit is frames, typical value is 1.2
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
involved in the computation of the local "motion mean" for the local adaptation computation
in the computation of the local "motion mean" for the local adaptation computationpublic void setupIPLMagnoChannel(boolean normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k)
normaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)parasolCells_beta
- the low pass filter gain used for local contrast adaptation at the
IPL level of the retina (for ganglion cells local adaptation), typical value is 0parasolCells_tau
- the 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_k
- the 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
the magnocellular way (motion information channel), unit is frames, typical value is 1.2
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
involved in the computation of the local "motion mean" for the local adaptation computation
in the computation of the local "motion mean" for the local adaptation computationpublic void setupIPLMagnoChannel(boolean normaliseOutput, float parasolCells_beta, float parasolCells_tau)
normaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)parasolCells_beta
- the low pass filter gain used for local contrast adaptation at the
IPL level of the retina (for ganglion cells local adaptation), typical value is 0parasolCells_tau
- the 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)
at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical
value is 5
the magnocellular way (motion information channel), unit is frames, typical value is 1.2
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
involved in the computation of the local "motion mean" for the local adaptation computation
in the computation of the local "motion mean" for the local adaptation computationpublic void setupIPLMagnoChannel(boolean normaliseOutput, float parasolCells_beta)
normaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)parasolCells_beta
- the 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
at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical
value is 0 (immediate response)
at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical
value is 5
the magnocellular way (motion information channel), unit is frames, typical value is 1.2
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
involved in the computation of the local "motion mean" for the local adaptation computation
in the computation of the local "motion mean" for the local adaptation computationpublic void setupIPLMagnoChannel(boolean normaliseOutput)
normaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)
IPL level of the retina (for ganglion cells local adaptation), typical value is 0
at the IPL level of the retina (for ganglion cells local adaptation), unit is frame, typical
value is 0 (immediate response)
at the IPL level of the retina (for ganglion cells local adaptation), unit is pixels, typical
value is 5
the magnocellular way (motion information channel), unit is frames, typical value is 1.2
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
involved in the computation of the local "motion mean" for the local adaptation computation
in the computation of the local "motion mean" for the local adaptation computationpublic void setupIPLMagnoChannel()
public void setupOPLandIPLParvoChannel(boolean colorMode, boolean normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant, float ganglionCellsSensitivity)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level imagenormaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)photoreceptorsLocalAdaptationSensitivity
- the photoreceptors sensitivity renage is 0-1
(more log compression effect when value increases)photoreceptorsTemporalConstant
- the 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 framephotoreceptorsSpatialConstant
- the 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 pixelhorizontalCellsGain
- gain 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 0HcellsTemporalConstant
- the 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 photoreceptorsHcellsSpatialConstant
- the 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)ganglionCellsSensitivity
- the 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.7public void setupOPLandIPLParvoChannel(boolean colorMode, boolean normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level imagenormaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)photoreceptorsLocalAdaptationSensitivity
- the photoreceptors sensitivity renage is 0-1
(more log compression effect when value increases)photoreceptorsTemporalConstant
- the 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 framephotoreceptorsSpatialConstant
- the 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 pixelhorizontalCellsGain
- gain 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 0HcellsTemporalConstant
- the 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 photoreceptorsHcellsSpatialConstant
- the 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)
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.7public void setupOPLandIPLParvoChannel(boolean colorMode, boolean normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level imagenormaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)photoreceptorsLocalAdaptationSensitivity
- the photoreceptors sensitivity renage is 0-1
(more log compression effect when value increases)photoreceptorsTemporalConstant
- the 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 framephotoreceptorsSpatialConstant
- the 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 pixelhorizontalCellsGain
- gain 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 0HcellsTemporalConstant
- the 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
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)
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.7public void setupOPLandIPLParvoChannel(boolean colorMode, boolean normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level imagenormaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)photoreceptorsLocalAdaptationSensitivity
- the photoreceptors sensitivity renage is 0-1
(more log compression effect when value increases)photoreceptorsTemporalConstant
- the 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 framephotoreceptorsSpatialConstant
- the 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 pixelhorizontalCellsGain
- gain 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
horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is
frames, typical value is 1 frame, as the photoreceptors
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)
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.7public void setupOPLandIPLParvoChannel(boolean colorMode, boolean normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level imagenormaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)photoreceptorsLocalAdaptationSensitivity
- the photoreceptors sensitivity renage is 0-1
(more log compression effect when value increases)photoreceptorsTemporalConstant
- the 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 framephotoreceptorsSpatialConstant
- the 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
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
horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is
frames, typical value is 1 frame, as the photoreceptors
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)
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.7public void setupOPLandIPLParvoChannel(boolean colorMode, boolean normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level imagenormaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)photoreceptorsLocalAdaptationSensitivity
- the photoreceptors sensitivity renage is 0-1
(more log compression effect when value increases)photoreceptorsTemporalConstant
- the 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
the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is
pixels, typical value is 1 pixel
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
horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is
frames, typical value is 1 frame, as the photoreceptors
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)
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.7public void setupOPLandIPLParvoChannel(boolean colorMode, boolean normaliseOutput, float photoreceptorsLocalAdaptationSensitivity)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level imagenormaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)photoreceptorsLocalAdaptationSensitivity
- the photoreceptors sensitivity renage is 0-1
(more log compression effect when value increases)
the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is
frames, typical value is 1 frame
the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is
pixels, typical value is 1 pixel
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
horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is
frames, typical value is 1 frame, as the photoreceptors
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)
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.7public void setupOPLandIPLParvoChannel(boolean colorMode, boolean normaliseOutput)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level imagenormaliseOutput
- specifies if (true) output is rescaled between 0 and 255 of not (false)
(more log compression effect when value increases)
the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is
frames, typical value is 1 frame
the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is
pixels, typical value is 1 pixel
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
horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is
frames, typical value is 1 frame, as the photoreceptors
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)
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.7public void setupOPLandIPLParvoChannel(boolean colorMode)
colorMode
- specifies if (true) color is processed of not (false) to then processing gray
level image
(more log compression effect when value increases)
the photoreceptors, use it to cut high temporal frequencies (noise or fast motion), unit is
frames, typical value is 1 frame
the photoreceptors, use it to cut high spatial frequencies (noise or thick contours), unit is
pixels, typical value is 1 pixel
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
horizontal cells, use it to cut low temporal frequencies (local luminance variations), unit is
frames, typical value is 1 frame, as the photoreceptors
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)
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.7public void setupOPLandIPLParvoChannel()
public void write(String fs)
fs
- the filename of the xml file that will be open and writen with formatted parameters
informationGenerated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2