XML/YAML File Storage Class.
Inheritance: OpenCvSharp.DisposableCvObject
Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
 /// <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);
 }