IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2010, 11:22:25 AM (16 years ago)
Author:
eugene
Message:

large update merging in changes for Ohana to support large files

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/imregister/imreg/match.c

    r3606 r27435  
    22# include "imreg.h"
    33
    4 int *match_criteria (RegImage *image, int Nimage, int *Nmatch) {
     4off_t *match_criteria (RegImage *image, off_t Nimage, off_t *Nmatch) {
    55
    6   int i, j, Nname;
    7   int N, NMATCH;
    8   int *match;
    9   int reject;
     6  off_t i, j, Nname;
     7  off_t N, NMATCH;
     8  off_t *match;
     9  off_t reject;
    1010
    1111  /* create selection index */
    1212  N = 0;
    1313  NMATCH = 1000;
    14   ALLOCATE (match, int, NMATCH);
     14  ALLOCATE (match, off_t, NMATCH);
    1515
    1616  Nname = 0;
     
    3636    if (N == NMATCH) {
    3737      NMATCH += 1000;
    38       REALLOCATE (match, int, NMATCH);
     38      REALLOCATE (match, off_t, NMATCH);
    3939    }
    4040  }
     
    4343}
    4444
    45 int *match_images (RegImage *image, int Nimage, RegImage *subset, int Nsubset, int *Nmatch) {
     45off_t *match_images (RegImage *image, off_t Nimage, RegImage *subset, off_t Nsubset, off_t *Nmatch) {
    4646 
    47   int i, j, N, Nfound;
    48   int *match;
     47  off_t i, j, N, Nfound;
     48  off_t *match;
    4949
    5050  /* find matching images - very inefficient : sort by obstime, find those first? */
    51   ALLOCATE (match, int, Nsubset);
     51  ALLOCATE (match, off_t, Nsubset);
    5252  for (j = 0; j < Nsubset; j++) {
    5353    match[j] = -1;
Note: See TracChangeset for help on using the changeset viewer.