OpenCvSharp.FileStorage.GetDefaultObjectName C# (CSharp) Method

GetDefaultObjectName() public static method

Returns the normalized object name for the specified file name
public static GetDefaultObjectName ( string fileName ) : string
fileName string
return string
        public static string GetDefaultObjectName(string fileName)
        {
            if (fileName == null)
                throw new ArgumentNullException(nameof(fileName));
            if (!File.Exists(fileName))
                throw new FileNotFoundException("", fileName);

            var buf = new StringBuilder(1 << 16);
            NativeMethods.core_FileStorage_getDefaultObjectName(fileName, buf, buf.Capacity);
            return buf.ToString();
        }