| 1 |
233 |
bertin |
/*
|
| 2 |
|
|
* filter.h
|
| 3 |
2 |
bertin |
*
|
| 4 |
233 |
bertin |
* Include file for filter.c.
|
| 5 |
2 |
bertin |
*
|
| 6 |
233 |
bertin |
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
| 7 |
2 |
bertin |
*
|
| 8 |
233 |
bertin |
* This file part of: SExtractor
|
| 9 |
2 |
bertin |
*
|
| 10 |
233 |
bertin |
* Copyright: (C) 1993,1998-2010 IAP/CNRS/UPMC
|
| 11 |
|
|
* (C) 1994,1997 ESO
|
| 12 |
|
|
* (C) 1995,1996 Sterrewacht Leiden
|
| 13 |
2 |
bertin |
*
|
| 14 |
233 |
bertin |
* Author: Emmanuel Bertin (IAP)
|
| 15 |
|
|
*
|
| 16 |
|
|
* License: GNU General Public License
|
| 17 |
|
|
*
|
| 18 |
|
|
* SExtractor is free software: you can redistribute it and/or modify
|
| 19 |
|
|
* it under the terms of the GNU General Public License as published by
|
| 20 |
|
|
* the Free Software Foundation, either version 3 of the License, or
|
| 21 |
|
|
* (at your option) any later version.
|
| 22 |
|
|
* SExtractor is distributed in the hope that it will be useful,
|
| 23 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 24 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 25 |
|
|
* GNU General Public License for more details.
|
| 26 |
|
|
* You should have received a copy of the GNU General Public License
|
| 27 |
|
|
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
|
| 28 |
|
|
*
|
| 29 |
|
|
* Last modified: 11/10/2010
|
| 30 |
|
|
*
|
| 31 |
|
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
| 32 |
2 |
bertin |
|
| 33 |
|
|
/*------------------------------- definitions -------------------------------*/
|
| 34 |
|
|
|
| 35 |
|
|
#define MAXMASK 1024 /* Maximum number of mask elements (=32x32) */
|
| 36 |
|
|
|
| 37 |
|
|
/*------------------------------- structures --------------------------------*/
|
| 38 |
|
|
|
| 39 |
|
|
typedef struct structfilter
|
| 40 |
|
|
{
|
| 41 |
|
|
/*---- convolution */
|
| 42 |
|
|
float *conv; /* pointer to the convolution mask */
|
| 43 |
|
|
int nconv; /* total number of elements */
|
| 44 |
|
|
int convw, convh; /* x,y size of the mask */
|
| 45 |
|
|
float varnorm;
|
| 46 |
|
|
/*---- neural filtering */
|
| 47 |
|
|
struct structbpann *bpann;
|
| 48 |
|
|
} filterstruct;
|
| 49 |
|
|
|
| 50 |
|
|
filterstruct *thefilter;
|
| 51 |
|
|
|
| 52 |
|
|
/*------------------------------- functions ---------------------------------*/
|
| 53 |
210 |
bertin |
void convolve(picstruct *, PIXTYPE *, int y),
|
| 54 |
206 |
bertin |
convolve_image(picstruct *field, float *vig1,
|
| 55 |
|
|
float *vig2, int width, int height),
|
| 56 |
210 |
bertin |
filter(picstruct *, PIXTYPE *, int y),
|
| 57 |
|
|
neurfilter(picstruct *, PIXTYPE *, int y),
|
| 58 |
2 |
bertin |
endfilter(void),
|
| 59 |
|
|
getfilter(char *filename);
|
| 60 |
|
|
|
| 61 |
|
|
int getconv(char *filename),
|
| 62 |
|
|
getneurfilter(char *filename);
|