OpenCvSharp.FileStorage.Open C# (CSharp) Method

Open() public method

operator that performs PCA. The previously stored data, if any, is released
public Open ( string fileName, Mode flags, string encoding = null ) : bool
fileName string
flags Mode
encoding string Encoding of the file. Note that UTF-16 XML encoding is not supported /// currently and you should use 8-bit encoding instead of it.
return bool
        public virtual bool Open(string fileName, Mode flags, string encoding = null)
        {
            if (disposed)
                throw new ObjectDisposedException("FileStorage");
            if (fileName == null)
                throw new ArgumentNullException(nameof(fileName));
            int ret = NativeMethods.core_FileStorage_open(ptr, fileName, (int)flags, encoding);
            return ret != 0;
        }