Changeset 27838 for branches/tap_branches/magic/remove/src/streaksrelease.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
magic (modified) (1 prop)
-
magic/remove (modified) (1 prop)
-
magic/remove/src (modified) (1 prop)
-
magic/remove/src/streaksrelease.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/magic
- Property svn:ignore
-
old new 1 1 magic 2 2 ssa-core-cpp 3 Makefile4 3 Makefile.bak
-
- Property svn:ignore
-
branches/tap_branches/magic/remove
-
Property svn:ignore
set to
configure
Makefile.in
Doxyfile
config.log
depcomp
config.status
config.guess
ltmain.sh
config.sub
autom4te.cache
libtool
missing
Makefile
aclocal.m4
install-sh
-
Property svn:ignore
set to
-
branches/tap_branches/magic/remove/src
- Property svn:ignore
-
old new 4 4 streakscompare 5 5 streaksrelease 6 makefile 6 Makefile 7 Makefile.in 8 config.h 9 .deps 10 streaksVersionDefinitions.h 11 config.h.in 12 stamp-h1
-
- Property svn:ignore
-
branches/tap_branches/magic/remove/src/streaksrelease.c
r25082 r27838 4 4 static bool readAndCopyToOutput(streakFiles *sf, bool exciseAll); 5 5 static void writeImages(streakFiles *sf, bool exciseImageCube); 6 7 char *streaksProgram = "streaksrelease"; 6 8 7 9 int … … 16 18 return PS_EXIT_CONFIG_ERROR; 17 19 } 18 19 // Values to set for masked pixels20 psU32 maskStreak = 0; // for the image and weight (usually NAN, MAXINT for integer images)21 psU32 maskMask = 0; // value looked up for MASK.STREAK22 20 23 21 // Does true work here? … … 50 48 51 49 // now that we've read the input files, lookup the mask values that we read 52 if (maskStreak == 0) {53 strkGetMaskValues(sfiles, &maskStreak, &maskMask); 54 }55 56 setMaskedToNAN(sfiles, maskMask, true);50 strkGetMaskValues(sfiles); 51 52 if (!sfiles->inImage->imagecube) { 53 setMaskedToNAN(sfiles, sfiles->maskMask, true); 54 } 57 55 58 56 // write out the destreaked temporary images and the recovery images … … 226 224 if (sf->inImage->image) { 227 225 setupImageRefs(sf->outImage, sf->recImage, sf->inImage, sf->extnum, exciseAll); 228 } else if (sf->inImage->imagecube) {229 // Image cubes should have been excised in the destreaking process230 streaksExit("unexpected imagecube found", PS_EXIT_CONFIG_ERROR);231 226 } else { 232 return false;227 // image cubes are handled specially 233 228 } 234 229 … … 278 273 279 274 275 // XXXX: why isn't this in streaksio.c ?? See also streakremove.c 280 276 static void 281 277 writeImages(streakFiles *sf, bool exciseImageCube) … … 303 299 } 304 300 305 // borrow one of the images from the imagecube and set it to init value306 psImage *image = psArrayGet (sf->inImage->imagecube, 0);307 psMemIncrRefCounter(image);308 psImageInit(image, initValue);309 if (exciseImageCube) {310 sf->outImage->image = image;311 writeImage(sf->outImage, extname, sf->extnum);312 } else {313 // write zero valued image to reccovery314 if (sf->recImage) {315 sf->recImage->image = image;316 writeImage(sf->recImage, extname, sf->extnum);317 }318 }319 301 // Assumption: there are no mask and weight images for video cells 320 302 return;
Note:
See TracChangeset
for help on using the changeset viewer.
