1 /* 2 * This file is part of Siril, an astronomy image processor. 3 * Copyright (C) 2005-2011 Francois Meyer (dulle at free.fr) 4 * Copyright (C) 2012-2015 team free-astro (see more in AUTHORS file) 5 * Reference site is https://free-astro.org/index.php/Siril 6 * 7 * Siril is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * Siril is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with Siril. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #ifndef SRC_QUALITY_H_ 21 #define SRC_QUALITY_H_ 22 23 // How many bright pixels do we average to get the real maximum value 24 #define MAXP 6 25 #define QMARGIN 0.1 26 #define QSUBSAMPLE_INC 1 27 #define QSUBSAMPLE_MAX 5 28 #define QSUBSAMPLE_MIN 3 29 #define THRESHOLD_UCHAR 40 30 #define THRESHOLD_USHRT 10240 31 #define THRESHOLD_FLOAT 0.156863f 32 #define QF_APERTURE_RADIUS 0 33 34 #undef DEBUG 35 36 double QualityEstimate(fits *fit, int layer); 37 int FindCentre(fits *fit, float *x_avg, float *y_avg); 38 39 // from quality_float.c 40 double QualityEstimate_float(fits *fit, int layer); 41 42 #endif /* SRC_QUALITY_H_ */ 43