home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / defs / image.def < prev    next >
Text File  |  1990-05-02  |  4KB  |  72 lines

  1. #ifndef lint
  2. static char SccsImdefId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    Image.def
  6.  * Purpose:    Declare and initialize imaging parameters
  7.  * Modified:    {0} Michael VanHilst    initial version          19 May 1989
  8.  *        {n} <who> -- <does what> -- <when>
  9.  */
  10.  
  11. struct imageRec img = {
  12.   NULL,        /* char *filename;    name of image file */
  13.   -1,        /* int fd;        open handle of image file */
  14.   0,        /* int headersize;    bytes at top used for header */
  15.   NULL,        /* char *header;    stored header */
  16.   SOP_Logo,    /* int file_type;    type of file (array,fits,iraf,etc) */
  17.   ARR_None,    /* int storage_type;    file storage (short, real, etc) */
  18.   0,        /* int bytepix;        number of bytes for pixel of data */
  19.   1,        /* int nimage;        number of image if several in file */
  20.   0,        /* int keep_data;    flag to keep file data in memory */
  21.   0,        /* int byte_swap;    byte swap data after reading file */
  22.   1,        /* int row_order;    row one as top or bottom */
  23.   1,        /* int index_base;    0 or 1 based index */
  24.   0,        /* int rotate_code;    rotation to apply */
  25.   SOP_ZoomNone,    /* int block_type;    type of blocked file reading */
  26.   0,        /* int filecols;    dimensions of image file */
  27.   0,        /* int filerows; */
  28.   0, 0,        /* int fiX1, fiX2;    file subsection selection */
  29.   0, 0,        /* int fiY1, fiY2; */
  30.   0.0,        /* double ficenX;    center of subsection used */
  31.   0.0,        /* double ficenY; */
  32.   1,        /* int fiblock;        base file to image blocking select */
  33.   0,        /* int dispcols;    initial display window size */
  34.   0,        /* int disprows; */
  35.   0,        /* int dispfix;        display size was specified */
  36.   1,        /* int keepfilebuf;    flag to keep file format data */
  37.   0,        /* int fdblock;        file to disp blocking */
  38.   0.0,        /* double fdcenX;    display center in file coord */
  39.   0.0,        /* double fdcenY; */
  40.   1024,        /* int bufmax;        limit of buffer size (square) */
  41.   1,        /* int buffix;        flag to prevent its being readjusted */
  42.   512,        /* int dispxmax;    limits of display window size */
  43.   512,        /* int dispymax */
  44.   128,        /* int dispmin;        (2 max's but symmetric min) */
  45.   -1,        /* int energy;        xray image energy filter (bitwise) */
  46.   SOP_Linear,    /* int scaling;        initial scaling selection */
  47.   0,        /* int fscaled;        scale & bias used when file written */
  48.   1.0,        /* double fscale;    scale given with file data */
  49.   0.0,        /* double fbias;    offset given with file data */
  50.   1.0, -1.0,    /* double fimin, fimax;    limits to clip image values (if a<b) */
  51.   1.0,        /* double fiscale;    scale to fit data into short buffer */
  52.   0.0,        /* double fibias;    offset to fit scaled data in buffer */
  53.   0,        /* int fiscaled;    scale and offset used in file read */
  54.   0, 0,        /* int pmax, pmin;    image value limits for scaling */
  55.   0,        /* int pfix;        use limits as given or calculate */
  56.   0.0, 0.0,    /* double crRA, crDec;    RA and Dec, corresponding file x,y */
  57.   0.0, 0.0,    /* double crpixX, crpixY; */
  58.   0.0, 0.0,    /* double crdeltX, crdeltY; */
  59.   0.0,        /* double crotaY;    x and y pixel dimension, rotation */
  60.   0,        /* int astrocoords;    flag that ra and dec are available */
  61.   0,        /* int imtoolWZT;    imtool scaling type */
  62.         /* double imtoolwcs[6];    iraf imtool WCS coordinates */
  63.   1.0, 0.0, 0.0, 1.0, 0.0, 0.0,
  64.    /* fX=((imgX+adj)*A+(imgY+adj)*C)+E,fY=((imgX+adj)*B+(imgY+adj)*D)+F */
  65.   0.0,        /* double img_adj;    imtool to ximage coord offset */
  66.   0.0, 0.0,    /* double imtoolWZ[2];    imtool greyscale Z values */
  67.   0,        /* int fbconfig;    imtool frame configuration number */
  68.   0,        /* int frame_number;    imtool frame number */
  69.   0,        /* int imtool_200;    current image is from imtool */
  70.   SOP_ZoomMax    /* int panbox_zoomtype;    type of zoom from image to panbox */
  71. };
  72.