public software.sextractor

[/] [branches/] [multi/] [src/] [subimage.h] - Blame information for rev 285

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 283 bertin
/*
2
*                               subimage.h
3
*
4
* Include file for subimage.c.
5
*
6
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7
*
8
*       This file part of:      SExtractor
9
*
10
*       Copyright:              (C) 1993-2012 Emmanuel Bertin -- IAP/CNRS/UPMC
11
*
12
*       License:                GNU General Public License
13
*
14
*       SExtractor is free software: you can redistribute it and/or modify
15
*       it under the terms of the GNU General Public License as published by
16
*       the Free Software Foundation, either version 3 of the License, or
17
*       (at your option) any later version.
18
*       SExtractor is distributed in the hope that it will be useful,
19
*       but WITHOUT ANY WARRANTY; without even the implied warranty of
20
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
*       GNU General Public License for more details.
22
*       You should have received a copy of the GNU General Public License
23
*       along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
24
*
25
*       Last modified:          03/04/2012
26
*
27
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
28
 
29
#ifndef _SUBIMAGE_H_
30
#define _SUBIMAGE_H_
31
 
32
#ifndef _FIELD_H_
33
#include        "field.h"
34
#endif
35
 
36
/*------------------------------- structures --------------------------------*/
37
typedef struct subimage
38
  {
39
  struct field  *field; /* pointer to the image field that hosts local data */
40
  struct field  *wfield;/* pointer to the field that hosts local weights */
41
  PIXTYPE       *image;                         /* Copy of local image data */
42
  PIXTYPE       *weight;                        /* Copy of local weight data */
43
  double        dpos[2];                /* Local object coordinates of centre */
44
  int           ipos[2];                /* Local coordinates of image centre */
45
  int           imsize[2];                      /* Local image data size */
46
  int           immin[2];                       /* Local image data min x/y */
47
  int           immax[2];                       /* Local image data max x/y */
48
  double        djacob[4];                      /* Local image Jacobian matrix*/
49
  double        dinvjacob[4];                   /* Inverse Jacobian matrix */
50
  double        dscale;                         /* Local relative pixel scale */
51 285 bertin
  PIXTYPE       bkg;                            /* Local background level */
52 283 bertin
  }     subimagestruct;
53
 
54
/*------------------------------- functions ---------------------------------*/
55
 
56
subimagestruct  *subimage_getall(fieldstruct **fields, fieldstruct **wfields,
57
                                int nfield, obj2struct *obj2);
58
 
59
void            subimage_endall(obj2struct *obj2),
60
                subimage_init(subimagestruct *subimage,
61
                                fieldstruct *field, fieldstruct *wfield,
62
                                obj2struct *obj2, subimagestruct *dsubimage);
63
 
64
#endif