-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMatrixUtil.cs
More file actions
15 lines (13 loc) · 760 Bytes
/
MatrixUtil.cs
File metadata and controls
15 lines (13 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using MathNet.Numerics.LinearAlgebra;
namespace ByteTrackCSharp;
public static class MatrixUtil
{
public static Matrix<float> StateMean() => Matrix<float>.Build.DenseIdentity(1, 8);
public static Matrix<float> StateCov() => Matrix<float>.Build.DenseIdentity(8, 8);
public static Matrix<float> StateHMean() => Matrix<float>.Build.DenseIdentity(1, 4);
public static Matrix<float> StateHCov() => Matrix<float>.Build.DenseIdentity(4, 4);
public static Matrix<float> Tlwh() => Matrix<float>.Build.DenseIdentity(1, 4);
public static Matrix<float> Tlbr() => Matrix<float>.Build.DenseIdentity(1, 4);
public static Matrix<float> Xyah() => Matrix<float>.Build.DenseIdentity(1, 4);
public static Matrix<float> DetectBox() => Xyah();
}