Add actions for peak and star find

This commit is contained in:
2019-09-28 10:57:48 +02:00
parent c4f25c32ed
commit b5d63a6185
7 changed files with 68 additions and 17 deletions
+4 -4
View File
@@ -7,10 +7,10 @@
#include <fitsio2.h>
#include "rawimage.h"
LoadRunable::LoadRunable(const QString &file, Image *receiver, bool stats) :
LoadRunable::LoadRunable(const QString &file, Image *receiver, AnalyzeLevel level) :
m_file(file),
m_receiver(receiver),
m_calculateStats(stats)
m_analyzeLevel(level)
{
}
@@ -211,11 +211,11 @@ void LoadRunable::run()
RawImageAbs *rawImage = nullptr;
if(m_file.endsWith(".CR2", Qt::CaseInsensitive))
{
loadRAW(m_file, info, m_calculateStats ? &rawImage : nullptr, &img);
loadRAW(m_file, info, m_analyzeLevel != None ? &rawImage : nullptr, &img);
}
else if(m_file.endsWith(".FIT", Qt::CaseInsensitive))
{
loadFITS(m_file, info, m_calculateStats ? &rawImage : nullptr, &img);
loadFITS(m_file, info, m_analyzeLevel != None ? &rawImage : nullptr, &img);
}
else
{