Changeset 25082 for trunk/magic/remove/src/streaksrelease.c
- Timestamp:
- Aug 14, 2009, 3:58:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksrelease.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksrelease.c
r24853 r25082 3 3 static pmConfig *parseArguments(int argc, char **argv); 4 4 static bool readAndCopyToOutput(streakFiles *sf, bool exciseAll); 5 static StreakPixels * getStreakPixels(streakFiles *sfiles, Streaks *streaks);6 static void exciseNonWarpedPixels(streakFiles *sfiles, double newMaskValue);7 static bool warpedPixel(streakFiles *sfiles, PixelPos *cellCoord);8 static void excisePixel(streakFiles *sfiles, unsigned int x, unsigned int y, bool streak, double newMaskValue);9 5 static void writeImages(streakFiles *sf, bool exciseImageCube); 10 6 … … 12 8 main(int argc, char *argv[]) 13 9 { 14 bool status;15 16 10 psLibInit(NULL); 17 11 psTimerStart("STREAKSREMOVE"); … … 25 19 // Values to set for masked pixels 26 20 psU32 maskStreak = 0; // for the image and weight (usually NAN, MAXINT for integer images) 27 psU32 maskMask = 0; // value looked up for MASK.STREAK 21 psU32 maskMask = 0; // value looked up for MASK.STREAK 28 22 29 23 // Does true work here? … … 216 210 // image data directly from psFits 217 211 readImage(sf->inImage, sf->extnum, sf->stage, false); 218 212 219 213 // astrom struct is only needed for raw stage, and only the chip to cell parameters are used 220 214 sf->astrom = streakSetAstrometry(sf->astrom, sf->stage, NULL, NULL, false, … … 304 298 initValue = NAN; 305 299 } else { 306 // otherwise write it to the output 300 // otherwise write it to the output 307 301 writeImageCube(sf->outImage, sf->inImage->imagecube, extname, sf->extnum); 308 302 initValue = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
