Skip to content

Commit

Permalink
Merge pull request #835 from shimat/static_dictionary
Browse files Browse the repository at this point in the history
static dictionary
  • Loading branch information
shimat authored Jan 8, 2020
2 parents 8b829ea + 91e22e8 commit 3669f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenCvSharp/Modules/core/Mat/Mat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3997,7 +3997,7 @@ public void Set<T>(int[] idx, T value) where T : struct

#region Get/SetArray

private readonly Dictionary<Type, int> dataDimensionMap = new Dictionary<Type, int>
private static readonly Dictionary<Type, int> dataDimensionMap = new Dictionary<Type, int>
{
{typeof(byte), 1},
{typeof(sbyte), 1},
Expand Down Expand Up @@ -4045,7 +4045,7 @@ public void Set<T>(int[] idx, T value) where T : struct
{typeof(Vec6d), 6},
};

private readonly Dictionary<Type, MatType[]> acceptableTypesMap = new Dictionary<Type, MatType[]>
private static readonly Dictionary<Type, MatType[]> acceptableTypesMap = new Dictionary<Type, MatType[]>
{
{typeof(byte), new[]{MatType.CV_8SC1, MatType.CV_8UC1}},
{typeof(sbyte), new[]{MatType.CV_8SC1, MatType.CV_8UC1}},
Expand Down

0 comments on commit 3669f83

Please sign in to comment.