Newer
Older
/*
check.h
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Part of: SExtractor
*
* Author: E.BERTIN, IAP/Leiden
*
* Contents: handling of "check-images".
*
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*/
/*--------------------------------- structures ------------------------------*/
/* Check-image parameters */
typedef struct structcheck
{
char filename[MAXCHAR]; /* ptr to check-image filename */
FILE *file; /* ptr to check-image file structure */
char *fitshead; /* ptr to check-image FITS header */
int fitsheadsize; /* size of check-image FITS header */
void *pix; /* ptr to check-image pixmap */
int width, height, depth; /* size of check-image */
size_t npix; /* number of pixels in check-image */
int y; /* current line in check-image */
PIXTYPE overlay; /* intensity of the overlayed plots */
PIXTYPE *line; /* buffered image line */
checkenum type; /* CHECKIMAGE_TYPE */
} checkstruct;
/*------------------------------- functions ---------------------------------*/
checkstruct *initcheck(char *, checkenum, int next);
void addcheck(checkstruct *, float *, int,int, int,int, float),
blankcheck(checkstruct *, PIXTYPE *, int,int,int,int,PIXTYPE),
endcheck(checkstruct *),
reendcheck(picstruct *field, checkstruct *),
reinitcheck(picstruct *, checkstruct *),
writecheck(checkstruct *, PIXTYPE *, int);