Changeset 28965
- Timestamp:
- Aug 19, 2010, 3:04:00 PM (16 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 2 edited
-
include/addstar.h (modified) (1 diff)
-
src/FilterStars.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r27435 r28965 209 209 Stars *ReadStarsSDSS PROTO((FILE *f, char *name, Header *header, Header *in_theader, Image *images, off_t *nimages, unsigned int *nstars)); 210 210 int ReadImageHeader PROTO((Header *header, Image *image, int photcode)); 211 Stars *FilterStars PROTO((Stars *instars, Image *image, unsigned int imageID ));211 Stars *FilterStars PROTO((Stars *instars, Image *image, unsigned int imageID, const AddstarClientOptions *options)); 212 212 Stars *MergeStars PROTO((Stars *stars, unsigned int *Nstars, Stars *instars, unsigned int Ninstars)); 213 213 double scat_subpix PROTO((double x, double y)); -
trunk/Ohana/src/addstar/src/FilterStars.c
r28214 r28965 1 1 # include "addstar.h" 2 #include "pslib/psMetadata.h" 3 #include "psmodules/pmSourceMasks.h" 2 4 # define EXTERNAL_ID TRUE 3 5 … … 10 12 // the imageID supplied here is the sequence **within this set** 11 13 // this value is updated based on the image table later 12 Stars *FilterStars (Stars *instars, Image *image, unsigned int imageID ) {14 Stars *FilterStars (Stars *instars, Image *image, unsigned int imageID, const AddstarClientOptions *options) { 13 15 14 16 int j, N; … … 28 30 ALLOCATE (stars, Stars, image[0].nstar); 29 31 for (N = j = 0; j < image[0].nstar; j++) { 32 33 if (instars[j].measure.photFlags & options->detectionFilter) continue; 30 34 31 35 /* allow for some dynamic filtering of star list */ … … 100 104 N ++; 101 105 } 106 107 // DEBUG printf("N stars orig = %d after filter = %d\n", image[0].nstar, N); 108 102 109 image[0].nstar = N; 103 110 REALLOCATE (stars, Stars, image[0].nstar);
Note:
See TracChangeset
for help on using the changeset viewer.
