IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2005, 4:42:29 PM (21 years ago)
Author:
eugene
Message:

working towards autocode for imregister

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/imreg/modify.c

    r2803 r3606  
    22# include "imreg.h"
    33
    4 void ModifySubset (int *match, int Nmatch) {
     4void ModifySubset (FITS_DB *db, RegImage *image, int Nimage, int *match, int Nmatch) {
    55
    66  int i, j, Nold;
    77  char *tmppath;
    88  char *ext, *root, *path, dist;
    9   int Nimage;
    10   RegImage *image;
     9  VTable vtable;
    1110
    1211  Nold = 0;
    1312  tmppath = NULL;
    14 
    15   image = get_images (&Nimage);
    1613
    1714  /* create some necessary variables */
     
    8178  }
    8279
    83   update_db (match, Nmatch);
     80  /** we may later want to pull this out and put it elsewhere **/
     81  fits_vtable_from_ftable (&db[0].ftable, &vtable, match, Nmatch);
     82  for (i = 0; i < Nmatch; i++) {
     83    fits_convert_RegImage ((RegImage *) vtable.buffer[i], sizeof (RegImage), 1);
     84  }
     85  fits_db_update (db, &vtable);
     86  fits_db_close (db);
     87  fits_db_free (db);
     88
    8489  fprintf (stderr, "SUCCESS\n");
    8590  exit (0);
Note: See TracChangeset for help on using the changeset viewer.