Changeset 26338
- Timestamp:
- Dec 4, 2009, 3:55:27 PM (16 years ago)
- Location:
- trunk/Ohana/src/addstar/src
- Files:
-
- 3 edited
-
FilterStars.c (modified) (1 diff)
-
LoadData.c (modified) (2 diffs)
-
UpdateImageIDs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/FilterStars.c
r21508 r26338 1 1 # include "addstar.h" 2 # define EXTERNAL_ID FALSE2 # define EXTERNAL_ID TRUE 3 3 4 4 /* exclude some detections based on various filter options: -
trunk/Ohana/src/addstar/src/LoadData.c
r26286 r26338 10 10 char *name; 11 11 int i, j, Nvalid, Nhead, Ndata, Nskip; 12 unsigned int parentID = UINT_MAX; 12 13 Stars *inStars; 13 14 … … 58 59 // skip the table if there is no data segment (eg, mosaic WRP image) 59 60 if (!strcmp(headerSets[i].extdata, "NONE")) { 61 if (!strcmp(headerSets[i].exthead, "PHU") && (Nimages > 1)) { 62 // This image is the parent of subsequent images 63 parentID = Nvalid; 64 images[0][Nvalid].parentID = UINT_MAX; 65 } 60 66 Nvalid++; 61 67 CHECK_REALLOCATE (images[0], Image, NVALID, Nvalid, 10); 62 68 continue; 63 69 } 70 images[0][Nvalid].parentID = parentID; 64 71 65 72 // advance the pointer to the start of the corresponding table block -
trunk/Ohana/src/addstar/src/UpdateImageIDs.c
r21508 r26338 40 40 for (i = 0; i < Nimages; i++) { 41 41 images[i].imageID += imageID; 42 if (images[i].parentID == UINT_MAX) { 43 images[i].parentID = 0; 44 } else { 45 images[i].parentID += imageID; 46 } 42 47 } 43 48
Note:
See TracChangeset
for help on using the changeset viewer.
