File indexing completed on 2024-05-12 15:23:42
0001 /* Ekos guide algorithms 0002 Copyright (C) 2012 Andrew Stepanenko 0003 0004 Modified by Jasem Mutlaq for KStars. 0005 SPDX-FileCopyrightText: Jasem Mutlaq <mutlaqja@ikarustech.com> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include "vect.h" 0013 #include <QPointer> 0014 #include <cstdint> 0015 0016 class FITSData; 0017 class Edge; 0018 0019 // Traditional guiding functions for star detection. 0020 class GuideAlgorithms : public QObject 0021 { 0022 public: 0023 static QList<Edge*> detectStars(const QSharedPointer<FITSData> &imageData, 0024 const QRect &trackingBox); 0025 0026 static GuiderUtils::Vector findLocalStarPosition(QSharedPointer<FITSData> &imageData, 0027 const int algorithmIndex, 0028 const int videoWidth, 0029 const int videoHeight, 0030 const QRect &trackingBox); 0031 private: 0032 template <typename T> 0033 static GuiderUtils::Vector findLocalStarPosition(QSharedPointer<FITSData> &imageData, 0034 const int algorithmIndex, 0035 const int videoWidth, 0036 const int videoHeight, 0037 const QRect &trackingBox); 0038 }; 0039