Emgu.CV.CvInvoke.CvRetinaCreate C# (CSharp) Метод

CvRetinaCreate() приватный Метод

private CvRetinaCreate ( Size inputSize, [ colorMode, Retina colorSamplingMethod, [ useRetinaLogSampling, double reductionFactor, double samplingStrength ) : IntPtr
inputSize Size
colorMode [
colorSamplingMethod Retina
useRetinaLogSampling [
reductionFactor double
samplingStrength double
Результат IntPtr
        internal static extern IntPtr CvRetinaCreate(
         Size inputSize,
         [MarshalAs(CvInvoke.BoolMarshalType)]
         bool colorMode,
         Retina.ColorSamplingMethod colorSamplingMethod,
         [MarshalAs(CvInvoke.BoolMarshalType)]
         bool useRetinaLogSampling,
         double reductionFactor,
         double samplingStrength);

Usage Example

Пример #1
0
 /// <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);
 }
CvInvoke