Skip to content

Commit c835801

Browse files
committed
开房 获取伪彩色 LUT 方法 GetPseudoColorLUT
1 parent dd7ec8c commit c835801

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

SDKs.DjiImage.Net45/Thermals/PseudoColorLUT.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ public struct PseudoColorLUT
1111
/// 红色 LUT,0~255
1212
/// </summary>
1313
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
14-
public byte[] red;
14+
public byte[] Red;
1515
/// <summary>
1616
/// 绿色 LUT,0~255
1717
/// </summary>
1818
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
19-
public byte[] green;
19+
public byte[] Green;
2020
/// <summary>
2121
/// 蓝色 LUT,0~255
2222
/// </summary>
2323
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
24-
public byte[] blue;
24+
public byte[] Blue;
2525

2626
/// <summary>
2727
/// 获取指定伪彩色映射的 Red 颜色值
@@ -31,7 +31,7 @@ public struct PseudoColorLUT
3131
/// <returns></returns>
3232
public byte GetRed(PseudoColor color, byte value)
3333
{
34-
return red[(byte)color * 256 + value];
34+
return Red[(byte)color * 256 + value];
3535
}
3636
/// <summary>
3737
/// 获取指定伪彩色映射的 Green 颜色值
@@ -42,7 +42,7 @@ public byte GetRed(PseudoColor color, byte value)
4242

4343
public byte GetGreen(PseudoColor color, int value)
4444
{
45-
return green[(byte)color * 256 + value];
45+
return Green[(byte)color * 256 + value];
4646
}
4747
/// <summary>
4848
/// 获取指定伪彩色映射的 Blue 颜色值
@@ -53,7 +53,7 @@ public byte GetGreen(PseudoColor color, int value)
5353

5454
public byte GetBlue(PseudoColor color, int value)
5555
{
56-
return blue[(byte)color * 256 + value];
56+
return Blue[(byte)color * 256 + value];
5757
}
5858
}
5959
}

SDKs.DjiImage.Net48/Thermals/PseudoColorLUT.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ public struct PseudoColorLUT
1111
/// 红色 LUT,0~255
1212
/// </summary>
1313
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
14-
public byte[] red;
14+
public byte[] Red;
1515
/// <summary>
1616
/// 绿色 LUT,0~255
1717
/// </summary>
1818
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
19-
public byte[] green;
19+
public byte[] Green;
2020
/// <summary>
2121
/// 蓝色 LUT,0~255
2222
/// </summary>
2323
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
24-
public byte[] blue;
24+
public byte[] Blue;
2525

2626
/// <summary>
2727
/// 获取指定伪彩色映射的 Red 颜色值
@@ -31,7 +31,7 @@ public struct PseudoColorLUT
3131
/// <returns></returns>
3232
public byte GetRed(PseudoColor color, byte value)
3333
{
34-
return red[(byte)color * 256 + value];
34+
return Red[(byte)color * 256 + value];
3535
}
3636
/// <summary>
3737
/// 获取指定伪彩色映射的 Green 颜色值
@@ -42,7 +42,7 @@ public byte GetRed(PseudoColor color, byte value)
4242

4343
public byte GetGreen(PseudoColor color, int value)
4444
{
45-
return green[(byte)color * 256 + value];
45+
return Green[(byte)color * 256 + value];
4646
}
4747
/// <summary>
4848
/// 获取指定伪彩色映射的 Blue 颜色值
@@ -53,7 +53,7 @@ public byte GetGreen(PseudoColor color, int value)
5353

5454
public byte GetBlue(PseudoColor color, int value)
5555
{
56-
return blue[(byte)color * 256 + value];
56+
return Blue[(byte)color * 256 + value];
5757
}
5858
}
5959
}

SDKs.DjiImage/Thermals/PseudoColorLUT.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Runtime.InteropServices;
1+
using System.Net.Security;
2+
using System.Runtime.InteropServices;
23

34
namespace SDKs.DjiImage.Thermals
45
{
@@ -11,17 +12,17 @@ public struct PseudoColorLUT
1112
/// 红色 LUT,0~255
1213
/// </summary>
1314
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
14-
public byte[] red;
15+
public byte[] Red;
1516
/// <summary>
1617
/// 绿色 LUT,0~255
1718
/// </summary>
1819
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
19-
public byte[] green;
20+
public byte[] Green;
2021
/// <summary>
2122
/// 蓝色 LUT,0~255
2223
/// </summary>
2324
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560, ArraySubType = UnmanagedType.U1)]
24-
public byte[] blue;
25+
public byte[] Blue;
2526

2627
/// <summary>
2728
/// 获取指定伪彩色映射的 Red 颜色值
@@ -31,7 +32,7 @@ public struct PseudoColorLUT
3132
/// <returns></returns>
3233
public byte GetRed(PseudoColor color, byte value)
3334
{
34-
return red[(byte)color * 256 + value];
35+
return Red[(byte)color * 256 + value];
3536
}
3637
/// <summary>
3738
/// 获取指定伪彩色映射的 Green 颜色值
@@ -42,7 +43,7 @@ public byte GetRed(PseudoColor color, byte value)
4243

4344
public byte GetGreen(PseudoColor color, int value)
4445
{
45-
return green[(byte)color * 256 + value];
46+
return Green[(byte)color * 256 + value];
4647
}
4748
/// <summary>
4849
/// 获取指定伪彩色映射的 Blue 颜色值
@@ -53,7 +54,7 @@ public byte GetGreen(PseudoColor color, int value)
5354

5455
public byte GetBlue(PseudoColor color, int value)
5556
{
56-
return blue[(byte)color * 256 + value];
57+
return Blue[(byte)color * 256 + value];
5758
}
5859
}
5960
}

0 commit comments

Comments
 (0)