winpos.h 947 Bytes
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
1
2
3
4
5
6
7
8
9
10
11
 /*
 				winpos.h

*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
*	Part of:	SExtractor
*
*	Author:		E.BERTIN, IAP
*
*	Contents:	Include file for winpos.c.
*
12
*	Last modify:	16/07/2010
Emmanuel Bertin's avatar
Emmanuel Bertin committed
13
14
15
16
17
18
19
20
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*/

/*----------------------------- Internal constants --------------------------*/

#define	WINPOS_NITERMAX	16	/* Maximum number of steps */
#define	WINPOS_NSIG	4	/* Measurement radius */
21
#define	WINPOS_OVERSAMP	11	/* oversampling in each dimension */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22
#define	WINPOS_STEPMIN	0.001	/* Minimum change in position for continueing*/
23
#define	WINPOS_FAC	2.0	/* Centroid offset factor (2 for a Gaussian) */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24
25
26
27
28
29
30
31
32
33

/* NOTES:
One must have:
	WINPOS_NITERMAX >= 1
	WINPOS_OVERSAMP >= 1
*/

/*------------------------------- functions ---------------------------------*/
extern void	compute_winpos(picstruct *field, picstruct *wfield,
			       objstruct *obj);