fix:
调焦时曲线显示bug
This commit is contained in:
@ -1182,12 +1182,15 @@ void HPPA::PlotSpectral(int state)
|
||||
QLineSeries *series = new QLineSeries();
|
||||
//series->clear();//////////////////////////////
|
||||
int sampleCount = m_Imager->getSampleCount();
|
||||
int bandCount = m_Imager->getBandCount();
|
||||
int tmp = int(bandCount / 2);
|
||||
//std::cout << tmp << std::endl;
|
||||
for (size_t i = 0; i < sampleCount; i++)
|
||||
{
|
||||
//malloc<6F><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4>÷<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD><D4B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//series->append(i, m_Imager->buffer[i + 5 * 900]);
|
||||
//series->append(i, m_Imager->buffer[900 * 150 + i]);
|
||||
series->append(i, m_Imager->buffer[1368 * 150 + i]);
|
||||
series->append(i, m_Imager->buffer[sampleCount * tmp + i]);
|
||||
}
|
||||
|
||||
QChart *chart = new QChart();
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>版本:2.0</string>
|
||||
<string>版本:T2.1</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_4">
|
||||
|
||||
Reference in New Issue
Block a user