Kstars

fitsthresholddetector.h
1/*
2 SPDX-FileCopyrightText: 2004 Jasem Mutlaq
3 SPDX-FileCopyrightText: 2020 Eric Dejouhanet <eric.dejouhanet@gmail.com>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6
7 Some code fragments were adapted from Peter Kirchgessner's FITS plugin
8 SPDX-FileCopyrightText: Peter Kirchgessner <http://members.aol.com/pkirchg>
9*/
10
11#ifndef FITSTHRESHOLDDETECTOR_H
12#define FITSTHRESHOLDDETECTOR_H
13
14#include "fitsstardetector.h"
15
16class FITSThresholdDetector: public FITSStarDetector
17{
19
20 public:
21 explicit FITSThresholdDetector(FITSData * data): FITSStarDetector(data) {};
22
23 public:
24 /** @brief Find sources in the parent FITS data file.
25 * @see FITSStarDetector::findSources().
26 */
27 QFuture<bool> findSources(QRect const &boundary = QRect()) override;
28
29 /** @brief Configure the detection method.
30 * @see FITSStarDetector::configure().
31 * @note Parameter "threshold" defaults to THRESHOLD_PERCENTAGE of the mean pixel value of the frame.
32 * @todo Provide parameters for detection configuration.
33 */
34 //void configure(const QString &setting, const QVariant &value) override;
35
36 public:
37 /** @group Detection parameters.
38 * @{ */
39 //int THRESHOLD_PERCENTAGE { 120 };
40 /** @} */
41
42 protected:
43 /** @internal Find sources in the parent FITS data file, dependent of the pixel depth.
44 * @see FITSGradientDetector::findSources.
45 */
46 template <typename T>
47 bool findOneStar(const QRect &boundary) const;
48};
49
50#endif // FITSTHRESHOLDDETECTOR_H
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.