/// <summary> /// Load the trained detector from file /// </summary> /// <param name="fileName">The trained laten svm file</param> public LatentSvmDetector(String fileName) { _ptr = CvInvoke.cvLoadLatentSvmDetector(fileName); if (_ptr == IntPtr.Zero) { throw new ArgumentException(String.Format("Unable to create latent svm model from the file {0}.", fileName)); } }
/// <summary> /// Load the trained detector from file /// </summary> /// <param name="fileName">The trained laten svm file</param> public LatentSvmDetector(String fileName) { _ptr = CvInvoke.cvLoadLatentSvmDetector(fileName); }