Skip to content

bioinspired_Retina_create1

bioinspiredfunctionOpenCV 5.0.0
import { bioinspired_Retina_create1 } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSinputSize, _1, _2, colorMode
FUNCTIONbioinspired_Retina_create1
RETURN TYPEbioinspired_Retina | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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

bioinspired_Retina_create1(inputSize: Size, colorMode: boolean, colorSamplingMethod: number, useRetinaLogSampling: boolean, reductionFactor: number, samplingStrength: number): bioinspired_Retina | null;
5 available overloads
bioinspired_Retina_create1(inputSize: Size, _1: boolean): bioinspired_Retina | null;
bioinspired_Retina_create1(inputSize: Size, _1: boolean, _2: number): bioinspired_Retina | null;
bioinspired_Retina_create1(inputSize: Size, colorMode: boolean, colorSamplingMethod: number, useRetinaLogSampling: boolean): bioinspired_Retina | null;
bioinspired_Retina_create1(inputSize: Size, colorMode: boolean, colorSamplingMethod: number, useRetinaLogSampling: boolean, reductionFactor: number): bioinspired_Retina | null;
bioinspired_Retina_create1(inputSize: Size, colorMode: boolean, colorSamplingMethod: number, useRetinaLogSampling: boolean, reductionFactor: number, samplingStrength: number): bioinspired_Retina | null;
inputSize

the input frame size

_1

1 argument (boolean).

_2

2 argument (number).

colorMode

the chosen processing mode : with or without color processing

colorSamplingMethod

specifies 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
useRetinaLogSampling

activate retina log sampling, if true, the 2 following parameters can be used

reductionFactor

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

samplingStrength

only usefull if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied

Returns

The bioinspired_Retina | null result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.