|
| 1 | +using System.Runtime.CompilerServices; |
| 2 | +using System.Runtime.InteropServices; |
| 3 | + |
| 4 | +#pragma warning disable 1591 |
| 5 | +#pragma warning disable CA1401 // P/Invokes should not be visible |
| 6 | +#pragma warning disable CA2101 // Specify marshaling for P/Invoke string arguments |
| 7 | +#pragma warning disable IDE1006 // Naming style |
| 8 | + |
| 9 | +namespace OpenCvSharp.Internal; |
| 10 | + |
| 11 | +static partial class NativeMethods |
| 12 | +{ |
| 13 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 14 | + public static partial ExceptionStatus ml_TrainData_getLayout(OpenCvSafeHandle obj, out int returnValue); |
| 15 | + |
| 16 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 17 | + public static partial ExceptionStatus ml_TrainData_getNSamples(OpenCvSafeHandle obj, out int returnValue); |
| 18 | + |
| 19 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 20 | + public static partial ExceptionStatus ml_TrainData_getNTrainSamples(OpenCvSafeHandle obj, out int returnValue); |
| 21 | + |
| 22 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 23 | + public static partial ExceptionStatus ml_TrainData_getNTestSamples(OpenCvSafeHandle obj, out int returnValue); |
| 24 | + |
| 25 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 26 | + public static partial ExceptionStatus ml_TrainData_getNVars(OpenCvSafeHandle obj, out int returnValue); |
| 27 | + |
| 28 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 29 | + public static partial ExceptionStatus ml_TrainData_getNAllVars(OpenCvSafeHandle obj, out int returnValue); |
| 30 | + |
| 31 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 32 | + public static partial ExceptionStatus ml_TrainData_getSamples(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 33 | + |
| 34 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 35 | + public static partial ExceptionStatus ml_TrainData_getMissing(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 36 | + |
| 37 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 38 | + public static partial ExceptionStatus ml_TrainData_getTrainSamples( |
| 39 | + OpenCvSafeHandle obj, int layout, int compressSamples, int compressVars, out IntPtr returnValue); |
| 40 | + |
| 41 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 42 | + public static partial ExceptionStatus ml_TrainData_getTrainResponses(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 43 | + |
| 44 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 45 | + public static partial ExceptionStatus ml_TrainData_getTestSamples(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 46 | + |
| 47 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 48 | + public static partial ExceptionStatus ml_TrainData_getTestResponses(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 49 | + |
| 50 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 51 | + public static partial ExceptionStatus ml_TrainData_getResponses(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 52 | + |
| 53 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 54 | + public static partial ExceptionStatus ml_TrainData_getVarIdx(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 55 | + |
| 56 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 57 | + public static partial ExceptionStatus ml_TrainData_getVarType(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 58 | + |
| 59 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 60 | + public static partial ExceptionStatus ml_TrainData_getClassLabels(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 61 | + |
| 62 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 63 | + public static partial ExceptionStatus ml_TrainData_getTrainSampleIdx(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 64 | + |
| 65 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 66 | + public static partial ExceptionStatus ml_TrainData_getTestSampleIdx(OpenCvSafeHandle obj, out IntPtr returnValue); |
| 67 | + |
| 68 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 69 | + public static partial ExceptionStatus ml_TrainData_setTrainTestSplit(OpenCvSafeHandle obj, int count, [MarshalAs(UnmanagedType.Bool)] bool shuffle); |
| 70 | + |
| 71 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 72 | + public static partial ExceptionStatus ml_TrainData_setTrainTestSplitRatio(OpenCvSafeHandle obj, double ratio, [MarshalAs(UnmanagedType.Bool)] bool shuffle); |
| 73 | + |
| 74 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 75 | + public static partial ExceptionStatus ml_TrainData_shuffleTrainTest(OpenCvSafeHandle obj); |
| 76 | + |
| 77 | + // static |
| 78 | + |
| 79 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 80 | + internal static partial ExceptionStatus ml_TrainData_create( |
| 81 | + in InputArrayProxy samples, int layout, in InputArrayProxy responses, |
| 82 | + in InputArrayProxy varIdx, in InputArrayProxy sampleIdx, in InputArrayProxy sampleWeights, in InputArrayProxy varType, |
| 83 | + out IntPtr returnValue); |
| 84 | + |
| 85 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 86 | + public static partial ExceptionStatus ml_TrainData_loadFromCSV( |
| 87 | + [MarshalAs(UnmanagedType.LPStr)] string filename, |
| 88 | + int headerLineCount, |
| 89 | + int responseStartIdx, |
| 90 | + int responseEndIdx, |
| 91 | + [MarshalAs(UnmanagedType.LPStr)] string varTypeSpec, |
| 92 | + byte delimiter, |
| 93 | + byte missch, |
| 94 | + out IntPtr returnValue); |
| 95 | + |
| 96 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 97 | + public static partial ExceptionStatus ml_Ptr_TrainData_delete(IntPtr obj); |
| 98 | + |
| 99 | + [LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] |
| 100 | + public static partial ExceptionStatus ml_Ptr_TrainData_get(IntPtr obj, out IntPtr returnValue); |
| 101 | +} |
0 commit comments