/// <summary> /// Create a soft (stageless) cascaded detector. /// </summary> /// <param name="trainedCascadeFileName">File name of the trained soft cascade detector</param> /// <param name="minScale">A minimum scale relative to the original size of the image on which cascade will be applied. Use 0.4 for default.</param> /// <param name="maxScale">A maximum scale relative to the original size of the image on which cascade will be applied. Use 5.0 for default</param> /// <param name="scales">Number of scales from minScale to maxScale. Use 55 for default</param> /// <param name="flags">An extra tuning flags.</param> public CudaSoftCascadeDetector(String trainedCascadeFileName, double minScale = 0.4, double maxScale = 5, int scales = 55, SoftCascadeDetector.RejectionCriteria flags = SoftCascadeDetector.RejectionCriteria.NoReject) { using (CvString s = new CvString(trainedCascadeFileName)) _ptr = SoftCascadeInvoke.cudaSoftCascadeDetectorCreate(s, minScale, maxScale, scales, flags); }
internal extern static IntPtr cudaSoftCascadeDetectorCreate( IntPtr fileName, double minScale, double maxScale, int scales, SoftCascadeDetector.RejectionCriteria flags);