- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/imregister/imreg/match.c
r3606 r27840 2 2 # include "imreg.h" 3 3 4 int *match_criteria (RegImage *image, int Nimage, int *Nmatch) {4 off_t *match_criteria (RegImage *image, off_t Nimage, off_t *Nmatch) { 5 5 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; 10 10 11 11 /* create selection index */ 12 12 N = 0; 13 13 NMATCH = 1000; 14 ALLOCATE (match, int, NMATCH);14 ALLOCATE (match, off_t, NMATCH); 15 15 16 16 Nname = 0; … … 36 36 if (N == NMATCH) { 37 37 NMATCH += 1000; 38 REALLOCATE (match, int, NMATCH);38 REALLOCATE (match, off_t, NMATCH); 39 39 } 40 40 } … … 43 43 } 44 44 45 int *match_images (RegImage *image, int Nimage, RegImage *subset, int Nsubset, int *Nmatch) {45 off_t *match_images (RegImage *image, off_t Nimage, RegImage *subset, off_t Nsubset, off_t *Nmatch) { 46 46 47 int i, j, N, Nfound;48 int *match;47 off_t i, j, N, Nfound; 48 off_t *match; 49 49 50 50 /* find matching images - very inefficient : sort by obstime, find those first? */ 51 ALLOCATE (match, int, Nsubset);51 ALLOCATE (match, off_t, Nsubset); 52 52 for (j = 0; j < Nsubset; j++) { 53 53 match[j] = -1;
Note:
See TracChangeset
for help on using the changeset viewer.
