福亮度转换

This commit is contained in:
2021-12-22 18:07:40 +08:00
parent 000203f049
commit 8c78a0d715
17 changed files with 277 additions and 70 deletions

View File

@ -59,6 +59,22 @@ namespace mainProgram
public double[] spectral;//long or double ?????????????????????????
}
public struct CalData
{
public int exposureTime;
public int pixelCount;
public int temperature;
public float[] waveLengthInNM;
public double[] gain;
public string SN;
}
public struct NonLinearData
{
public double[] nonLinearData;
public string SN;
}
public class SpectralDataReaderWriter
{
@ -140,14 +156,10 @@ namespace mainProgram
FileStream fs = new FileStream(mCsvPath, FileMode.Open, FileAccess.Read);
StreamReader sr = new StreamReader(fs, encoding);
string strLine = "";//记录每次读取的一行记录
string[] aryLine = null;//记录每行记录中的各字段内容
//记录每次读取的一行记录
string strLine = "";
//记录每行记录中的各字段内容
string[] aryLine = null;
//逐行读取CSV中的数据
while ((strLine = sr.ReadLine()) != null)
while ((strLine = sr.ReadLine()) != null)//逐行读取CSV中的数据
{
aryLine = strLine.Split(',');
DataRow dr = mDataTable.NewRow();