bioinspired_Retina_create1
import { bioinspired_Retina_create1 } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;inputSizethe input frame size
_11 argument (boolean).
_22 argument (number).
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
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.