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-2021 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_CORE_ARITHM_H_ 21 #define SRC_CORE_ARITHM_H_ 22 23 /* operations on image data */ 24 typedef enum { 25 OPER_ADD, 26 OPER_SUB, 27 OPER_MUL, 28 OPER_DIV 29 } image_operator; 30 31 32 int soper(fits *a, float scalar, image_operator oper, gboolean conv_to_float); 33 int imoper(fits *a, fits *b, image_operator oper, gboolean allow_32bits); 34 int addmax(fits *a, fits *b); 35 int siril_fdiv(fits *a, fits *b, float scalar, gboolean allow_32bits); 36 int siril_ndiv(fits *a, fits *b); 37 38 #endif /* SRC_CORE_ARITHM_H_ */ 39