福亮度转换
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user