Changeset 23911
- Timestamp:
- Apr 17, 2009, 3:57:42 PM (17 years ago)
- Location:
- trunk/magic/remove/src
- Files:
-
- 2 edited
-
streaksio.c (modified) (5 diffs)
-
streaksremove.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksio.c
r23487 r23911 6 6 static void streakFilesFree(streakFiles *sf); 7 7 static void freeImages(streakFiles *); 8 static void setExciseValue(sFile *in); 8 9 9 10 static nebServer *ourNebServer = NULL; … … 471 472 sf->inImage->numCols = readout->image->numCols; 472 473 sf->inImage->numRows = readout->image->numRows; 474 setExciseValue(sf->inImage); 473 475 } 474 476 … … 545 547 streaksExit("", PS_EXIT_DATA_ERROR); 546 548 } 547 if (in->image->type.type == PS_TYPE_U16) { 548 in->exciseValue = 65535; 549 psMetadataAddU16(in->header, PS_LIST_TAIL, "BLANK", 0, "", 65535); 550 psMetadataAddU16(in->header, PS_LIST_TAIL, "ZBLANK", 0, "", 65535); 551 } else { 552 in->exciseValue = NAN; 553 } 549 setExciseValue(in); 554 550 } else { 555 551 if (stage != IPP_STAGE_RAW) { … … 613 609 614 610 #ifdef STREAKS_COMPRESS_OUTPUT 611 // Paul says that I should be able to leave this blank 612 bitpix = 0; 615 613 setFitsOptions(out, bitpix, bscale, bzero); 616 614 setFitsOptions(rec, bitpix, bscale, bzero); … … 1035 1033 ourNebServer = NULL; 1036 1034 } 1035 static void 1036 setExciseValue(sFile *in) 1037 { 1038 if (in->image->type.type == PS_TYPE_U16) { 1039 in->exciseValue = 65535; 1040 psMetadataAddU16(in->header, PS_LIST_TAIL, "BLANK", 0, "", 65535); 1041 psMetadataAddU16(in->header, PS_LIST_TAIL, "ZBLANK", 0, "", 65535); 1042 } else { 1043 in->exciseValue = NAN; 1044 } 1045 } -
trunk/magic/remove/src/streaksremove.c
r21481 r23911 28 28 streaksExit("", PS_EXIT_CONFIG_ERROR); 29 29 } 30 double maskStreak = (double) psMetadataLookupU 8(&status, masks, "STREAK");30 double maskStreak = (double) psMetadataLookupU16(&status, masks, "STREAK"); 31 31 if (!status) { 32 32 psError(PM_ERR_CONFIG, false, "failed to lookup mask value for STREAK in recipes\n"); … … 35 35 36 36 // optionally setting pixels with any mask bits execpt POOR.WARP to NAN 37 psU 8 poorWarp = (double) psMetadataLookupU8(&status, masks, "POOR.WARP");37 psU16 poorWarp = (double) psMetadataLookupU16(&status, masks, "CONV.POOR"); 38 38 if (!status) { 39 39 psError(PM_ERR_CONFIG, false, "failed to lookup mask value for POOR.WARP in recipes\n"); 40 40 streaksExit("", PS_EXIT_CONFIG_ERROR); 41 41 } 42 psU 8maskMask = ~poorWarp;42 psU16 maskMask = ~poorWarp; 43 43 44 44 psString streaksFileName = psMetadataLookupStr(NULL, config->arguments, "STREAKS");
Note:
See TracChangeset
for help on using the changeset viewer.
