File: psf-determine.h

package info (click to toggle)
fitsh 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,768 kB
  • ctags: 4,050
  • sloc: ansic: 53,352; makefile: 1,120; sh: 25
file content (74 lines) | stat: -rw-r--r-- 2,181 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*****************************************************************************/
/* psf-determine.h							     */
/*****************************************************************************/

#ifndef	__PSF_DETERMINE_H_INCLUDED
#define	__PSF_DETERMINE_H_INCLUDED	1

#include <fits/fits.h>	/* typedef: fits, fitsimage	*/

#include "psf.h"	/* typedef: psf			*/
#include "stars.h"	/* typedef: candidate		*/

/*****************************************************************************/

#define		PSF_DET_NATIVE		1
#define		PSF_DET_INTEGRAL	2
#define		PSF_DET_CIRCLE		3

typedef struct
 {	int	use_biquad;
 } psfdeterminenative;

typedef struct
 {	double	kappa;
 } psfdetermineintegral;

typedef struct
 {	double	width;
	int	order;
 } psfdeterminecircle;

typedef union
 {	psfdeterminenative	native;
	psfdetermineintegral	integral;
	psfdeterminecircle	circle;
 } psfdetparam;

typedef struct
 {	int		type;
	int		hsize,grid;
        int		order;
	psfdetparam	param;
        int		is_symmetrize;	
 } psfdetermine;

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int	psf_determine_native  (fitsimage *img,char **mask,
		psfcandidate *cands,int ncand,int is_subtracted,
		int hsize,int grid,int order,psf *p,int use_biquad);
int	psf_determine_integral(fitsimage *img,char **mask,
		psfcandidate *cands,int ncand,int is_subtracted,
		int hsize,int grid,int order,psf *p,double kappa);
int	psf_determine_circle  (fitsimage *img,char **mask,
		psfcandidate *cands,int ncand,int is_subtracted,
		int hsize,int grid,int order,psf *p,double circwd,int circorder);

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int	psf_determine(fitsimage *img,char **mask,
		psfcandidate *cands,int ncand,int is_subtracted,
		psfdetermine *pd,psf *p);

int	drawback_psf(ipoint *ipoints,int nipoint,double *yvals,
		double x0,double y0,double amp,psf *p,double mul);

int	psf_bgamp_fit(fitsimage *img,char **mask,
		psfcandidate *cands,int ncand,int is_subtracted,psf *p);

/*****************************************************************************/

#endif

/*****************************************************************************/