更新支持使用asd测定的积分球标准能量曲线

This commit is contained in:
2022-02-17 17:39:01 +08:00
parent b5065db641
commit ed9a854e8b
6 changed files with 298 additions and 348 deletions

View File

@ -186,7 +186,7 @@ void CalibrationAlgorithm::readAndResample_StandardLightFile(QString filePath, i
// outfile2 << m_dStandardLightDataBase << std::endl;
// }
//
// outfile2 << deviceAttribute.fWaveLengthInNM[i] << "," << dTemp << std::endl;
// outfile2 << deviceAttribute.fWaveLengthInNM[i] << "," << m_dStandardLightDataResampled[i] << std::endl;
// }
// outfile2.close();
}
@ -228,14 +228,14 @@ void CalibrationAlgorithm::produceCalfile(QString calFilePath, DeviceAttribute d
fclose(calFileHandle);
// //д<>뵽CSV<53>ļ<EFBFBD>
// QString calFile_csv = calFilePath.split(".")[0] + ".csv";
// std::ofstream outfile(calFile_csv.toStdString().c_str());
// for (int i = 0; i < deviceAttribute.iPixels; i++)
// {
// outfile << deviceAttribute.fWaveLengthInNM[i] << "," << m_gain[i] << std::endl;
// }
// outfile.close();
//д<>뵽CSV<53>ļ<EFBFBD>
QString calFile_csv = calFilePath.split(".")[0] + ".csv";
std::ofstream outfile(calFile_csv.toStdString().c_str());
for (int i = 0; i < deviceAttribute.iPixels; i++)
{
outfile << deviceAttribute.fWaveLengthInNM[i] << "," << m_gain[i] << std::endl;
}
outfile.close();
delete[] m_gain;
}