/// <summary> /// Create a retina model /// </summary> /// <param name="inputSize">The input frame size</param> /// <param name="colorMode">Specifies if (true) color is processed of not (false) to then processing gray level image</param> /// <param name="colorSamplingMethod">Specifies which kind of color sampling will be used</param> /// <param name="useRetinaLogSampling">Activate retina log sampling, if true, the 2 following parameters can be used</param> /// <param name="reductionFactor">Only useful 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</param> /// <param name="samplingStrength">Only useful if param useRetinaLogSampling=true, specifies the strength of the log scale that is applied</param> public Retina(Size inputSize, bool colorMode, ColorSamplingMethod colorSamplingMethod, bool useRetinaLogSampling, double reductionFactor, double samplingStrength) { _ptr = BioinspiredInvoke.cveRetinaCreate(ref inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrength, ref _sharePtr); }
/// <summary> /// Create a retina model /// </summary> /// <param name="inputSize">The input frame size</param> /// <param name="colorMode">Specifies if (true) color is processed of not (false) to then processing gray level image</param> /// <param name="colorSamplingMethod">Specifies which kind of color sampling will be used</param> /// <param name="useRetinaLogSampling">Activate retina log sampling, if true, the 2 following parameters can be used</param> /// <param name="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</param> /// <param name="samplingStrength">Only usefull if param useRetinaLogSampling=true, specifies the strenght of the log scale that is applied</param> public Retina(Size inputSize, bool colorMode, ColorSamplingMethod colorSamplingMethod, bool useRetinaLogSampling, double reductionFactor, double samplingStrength) { _inputSize = inputSize; _ptr = CvInvoke.CvRetinaCreate(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrength); }