1 /********************************************************************* 2 Convolve -- Convolve the dataset with a given kernel. 3 This is part of GNU Astronomy Utilities (Gnuastro) package. 4 5 Original author: 6 Mohammad Akhlaghi <mohammad@akhlaghi.org> 7 Contributing author(s): 8 Copyright (C) 2017-2021, Free Software Foundation, Inc. 9 10 Gnuastro is free software: you can redistribute it and/or modify it 11 under the terms of the GNU General Public License as published by the 12 Free Software Foundation, either version 3 of the License, or (at your 13 option) any later version. 14 15 Gnuastro is distributed in the hope that it will be useful, but 16 WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with Gnuastro. If not, see <http://www.gnu.org/licenses/>. 22 **********************************************************************/ 23 #ifndef __GAL_CONVOLVE_H__ 24 #define __GAL_CONVOLVE_H__ 25 26 /* Include other headers if necessary here. Note that other header files 27 must be included before the C++ preparations below */ 28 #include <gnuastro/data.h> 29 30 /* C++ Preparations */ 31 #undef __BEGIN_C_DECLS 32 #undef __END_C_DECLS 33 #ifdef __cplusplus 34 # define __BEGIN_C_DECLS extern "C" { 35 # define __END_C_DECLS } 36 #else 37 # define __BEGIN_C_DECLS /* empty */ 38 # define __END_C_DECLS /* empty */ 39 #endif 40 /* End of C++ preparations */ 41 42 /* Actual header contants (the above were for the Pre-processor). */ 43 __BEGIN_C_DECLS /* From C++ preparations */ 44 45 46 47 gal_data_t * 48 gal_convolve_spatial(gal_data_t *tiles, gal_data_t *kernel, 49 size_t numthreads, int edgecorrection, int convoverch); 50 51 52 void 53 gal_convolve_spatial_correct_ch_edge(gal_data_t *tiles, gal_data_t *kernel, 54 size_t numthreads, int edgecorrection, 55 gal_data_t *tocorrect); 56 57 58 59 __END_C_DECLS /* From C++ preparations */ 60 61 #endif 62