/// <summary> /// Stores algorithm parameters in a file storage /// </summary> /// <param name="fs"></param> public virtual void Write(FileStorage fs) { if (ptr == IntPtr.Zero) throw new ObjectDisposedException(GetType().Name); if (fs == null) throw new ArgumentNullException("fs"); NativeMethods.core_Algorithm_write(ptr, fs.CvPtr); }
/// <summary> /// /// </summary> /// <param name="fs"></param> /// <param name="name"></param> /// <param name="value"></param> public static void Write(FileStorage fs, string name, IEnumerable<DMatch> value) { if (fs == null) throw new ArgumentNullException(nameof(fs)); fs.Write(name, value); }
/// <summary> /// /// </summary> /// <param name="fs"></param> /// <param name="value"></param> public static void WriteScalar(FileStorage fs, string value) { if (fs == null) throw new ArgumentNullException(nameof(fs)); fs.WriteScalar(value); }
/// <summary> /// /// </summary> /// <param name="fs"></param> /// <param name="name"></param> /// <param name="value"></param> public static void Write(FileStorage fs, string name, SparseMat value) { if (fs == null) throw new ArgumentNullException(nameof(fs)); fs.Write(name, value); }