Skip to content

Commit d59f261

Browse files
authored
Merge pull request #2033 from shimat/feature/2010-dnn-ml-coverage
dnn/ml: close API coverage gaps from issue #2010
2 parents 094e67a + eb3055e commit d59f261

35 files changed

Lines changed: 1964 additions & 19 deletions

src/OpenCvSharp/Internal/PInvoke/NativeMethods/dnn/NativeMethods_dnn.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,20 @@ public static partial ExceptionStatus dnn_blobFromImagesWithParams(
153153
IntPtr[] images, int imagesLength, Scalar scalefactor, Size size, Scalar mean,
154154
int swapRB, int ddepth, int datalayout, int paddingmode, Scalar borderValue, out IntPtr returnValue);
155155

156+
// Image2BlobParams.BlobRectToImageRect / BlobRectsToImageRects
157+
158+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
159+
public static partial ExceptionStatus dnn_Image2BlobParams_blobRectToImageRect(
160+
Scalar scalefactor, Size paramSize, Scalar mean,
161+
int swapRB, int ddepth, int datalayout, int paddingmode, Scalar borderValue,
162+
Rect rBlob, Size size, out Rect returnValue);
163+
164+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
165+
public static partial ExceptionStatus dnn_Image2BlobParams_blobRectsToImageRects(
166+
Scalar scalefactor, Size paramSize, Scalar mean,
167+
int swapRB, int ddepth, int datalayout, int paddingmode, Scalar borderValue,
168+
[In] Rect[] rBlob, int rBlobLength, Size size, IntPtr outVec);
169+
156170
// imagesFromBlob
157171

158172
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
// ReSharper disable InconsistentNaming
12+
static partial class NativeMethods
13+
{
14+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
15+
public static partial ExceptionStatus dnn_Layer_getBlobs(OpenCvSafeHandle obj, IntPtr outVec);
16+
17+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
18+
public static partial ExceptionStatus dnn_Layer_setBlobs(OpenCvSafeHandle obj, IntPtr blobs);
19+
20+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
21+
public static partial ExceptionStatus dnn_Layer_getName(OpenCvSafeHandle obj, IntPtr outString);
22+
23+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
24+
public static partial ExceptionStatus dnn_Layer_getType(OpenCvSafeHandle obj, IntPtr outString);
25+
26+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
27+
public static partial ExceptionStatus dnn_Layer_getPreferableTarget(OpenCvSafeHandle obj, out int returnValue);
28+
29+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
30+
public static partial ExceptionStatus dnn_Layer_outputNameToIndex(
31+
OpenCvSafeHandle obj, [MarshalAs(UnmanagedType.LPStr)] string outputName, out int returnValue);
32+
33+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
34+
public static partial ExceptionStatus dnn_Ptr_Layer_delete(IntPtr obj);
35+
36+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
37+
public static partial ExceptionStatus dnn_Ptr_Layer_get(IntPtr obj, out IntPtr returnValue);
38+
}

src/OpenCvSharp/Internal/PInvoke/NativeMethods/dnn/NativeMethods_dnn_Net.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public static partial ExceptionStatus dnn_Net_readFromModelOptimizer(
3333
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
3434
public static partial ExceptionStatus dnn_Net_getLayerId(OpenCvSafeHandle net, [MarshalAs(UnmanagedType.LPStr)] string layer, out int returnValue);
3535

36+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
37+
public static partial ExceptionStatus dnn_Net_getLayer(OpenCvSafeHandle net, int layerId, out IntPtr returnValue);
38+
3639
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
3740
public static partial ExceptionStatus dnn_Net_getLayerNames(OpenCvSafeHandle net, IntPtr outVec);
3841

@@ -57,6 +60,12 @@ public static partial ExceptionStatus dnn_Net_forward2(
5760
public static partial ExceptionStatus dnn_Net_forward3(
5861
OpenCvSafeHandle net, IntPtr[] outputBlobs, int outputBlobsLength, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] outBlobNames, int outBlobNamesLength);
5962

63+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
64+
public static partial ExceptionStatus dnn_Net_forwardAndRetrieve(
65+
OpenCvSafeHandle net,
66+
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] outBlobNames, int outBlobNamesLength,
67+
IntPtr outFlatBlobs, IntPtr outCounts);
68+
6069
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
6170
public static partial ExceptionStatus dnn_Net_setPreferableBackend(OpenCvSafeHandle net, int backendId);
6271

src/OpenCvSharp/Internal/PInvoke/NativeMethods/dnn/NativeMethods_dnn_TextModel.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public static partial ExceptionStatus dnn_TextRecognitionModel_setVocabulary(
4848
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
4949
internal static partial ExceptionStatus dnn_TextRecognitionModel_recognize(OpenCvSafeHandle model, in InputArrayProxy frame, IntPtr outString);
5050

51+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
52+
internal static partial ExceptionStatus dnn_TextRecognitionModel_recognize_batch(
53+
OpenCvSafeHandle model, in InputArrayProxy frame, in InputArrayProxy roiRects, IntPtr outVec);
54+
5155
// ------------------------------------------------------------------------
5256
// TextDetectionModel (base; shared by EAST and DB)
5357
// ------------------------------------------------------------------------

src/OpenCvSharp/Internal/PInvoke/NativeMethods/ml/NativeMethods_ml_RTrees.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ static partial class NativeMethods
2828
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
2929
public static partial ExceptionStatus ml_RTrees_getVarImportance(OpenCvSafeHandle obj, out IntPtr returnValue);
3030

31+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
32+
internal static partial ExceptionStatus ml_RTrees_getVotes(
33+
OpenCvSafeHandle obj, in InputArrayProxy samples, in OutputArrayProxy results, int flags);
34+
3135
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
3236
public static partial ExceptionStatus ml_RTrees_create(out IntPtr returnValue);
3337

src/OpenCvSharp/Internal/PInvoke/NativeMethods/ml/NativeMethods_ml_SVM.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ static partial class NativeMethods
6868
internal static partial ExceptionStatus ml_SVM_getDecisionFunction(
6969
OpenCvSafeHandle obj, int i, in OutputArrayProxy alpha, in OutputArrayProxy svidx, out double returnValue);
7070

71+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
72+
public static partial ExceptionStatus ml_SVM_trainAuto(
73+
OpenCvSafeHandle obj, IntPtr data, int kFold,
74+
ParamGrid cGrid, ParamGrid gammaGrid, ParamGrid pGrid, ParamGrid nuGrid, ParamGrid coeffGrid, ParamGrid degreeGrid,
75+
[MarshalAs(UnmanagedType.Bool)] bool balanced, out int returnValue);
76+
7177
// static
7278

7379
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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_SVMSGD_getWeights(OpenCvSafeHandle obj, out IntPtr returnValue);
15+
16+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
17+
public static partial ExceptionStatus ml_SVMSGD_getShift(OpenCvSafeHandle obj, out float returnValue);
18+
19+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
20+
public static partial ExceptionStatus ml_SVMSGD_setOptimalParameters(OpenCvSafeHandle obj, int svmsgdType, int marginType);
21+
22+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
23+
public static partial ExceptionStatus ml_SVMSGD_getSvmsgdType(OpenCvSafeHandle obj, out int returnValue);
24+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
25+
public static partial ExceptionStatus ml_SVMSGD_setSvmsgdType(OpenCvSafeHandle obj, int val);
26+
27+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
28+
public static partial ExceptionStatus ml_SVMSGD_getMarginType(OpenCvSafeHandle obj, out int returnValue);
29+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
30+
public static partial ExceptionStatus ml_SVMSGD_setMarginType(OpenCvSafeHandle obj, int val);
31+
32+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
33+
public static partial ExceptionStatus ml_SVMSGD_getMarginRegularization(OpenCvSafeHandle obj, out float returnValue);
34+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
35+
public static partial ExceptionStatus ml_SVMSGD_setMarginRegularization(OpenCvSafeHandle obj, float val);
36+
37+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
38+
public static partial ExceptionStatus ml_SVMSGD_getInitialStepSize(OpenCvSafeHandle obj, out float returnValue);
39+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
40+
public static partial ExceptionStatus ml_SVMSGD_setInitialStepSize(OpenCvSafeHandle obj, float val);
41+
42+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
43+
public static partial ExceptionStatus ml_SVMSGD_getStepDecreasingPower(OpenCvSafeHandle obj, out float returnValue);
44+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
45+
public static partial ExceptionStatus ml_SVMSGD_setStepDecreasingPower(OpenCvSafeHandle obj, float val);
46+
47+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
48+
public static partial ExceptionStatus ml_SVMSGD_getTermCriteria(OpenCvSafeHandle obj, out TermCriteria returnValue);
49+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
50+
public static partial ExceptionStatus ml_SVMSGD_setTermCriteria(OpenCvSafeHandle obj, TermCriteria val);
51+
52+
// static
53+
54+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
55+
public static partial ExceptionStatus ml_SVMSGD_create(out IntPtr returnValue);
56+
57+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
58+
public static partial ExceptionStatus ml_Ptr_SVMSGD_get(IntPtr obj, out IntPtr returnValue);
59+
60+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
61+
public static partial ExceptionStatus ml_Ptr_SVMSGD_delete(IntPtr obj);
62+
63+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
64+
public static partial ExceptionStatus ml_SVMSGD_load([MarshalAs(UnmanagedType.LPStr)] string filePath, out IntPtr returnValue);
65+
66+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
67+
public static partial ExceptionStatus ml_SVMSGD_loadFromString([MarshalAs(UnmanagedType.LPStr)] string strModel, out IntPtr returnValue);
68+
}

src/OpenCvSharp/Internal/PInvoke/NativeMethods/ml/NativeMethods_ml_StatModel.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@ static partial class NativeMethods
2424
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
2525
public static partial ExceptionStatus ml_StatModel_isClassifier(OpenCvSafeHandle obj, out int returnValue);
2626

27+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
28+
public static partial ExceptionStatus ml_StatModel_train1(
29+
OpenCvSafeHandle obj, IntPtr trainData, int flags, out int returnValue);
30+
2731
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
2832
internal static partial ExceptionStatus ml_StatModel_train2(
2933
OpenCvSafeHandle obj, in InputArrayProxy samples, int layout, in InputArrayProxy responses, out int returnValue);
3034

35+
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
36+
internal static partial ExceptionStatus ml_StatModel_calcError(
37+
OpenCvSafeHandle obj, IntPtr data, [MarshalAs(UnmanagedType.Bool)] bool test, in OutputArrayProxy resp, out float returnValue);
38+
3139
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
3240
internal static partial ExceptionStatus ml_StatModel_predict(
3341
OpenCvSafeHandle obj, in InputArrayProxy samples, in OutputArrayProxy results, int flags, out float returnValue);
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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

Comments
 (0)