Changeset 36060
- Timestamp:
- Aug 30, 2013, 3:06:50 PM (13 years ago)
- Location:
- trunk/pstamp/src
- Files:
-
- 3 edited
-
Makefile.am (modified) (1 diff)
-
ppstampMakeStamp.c (modified) (3 diffs)
-
pstamp.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/src/Makefile.am
r34089 r36060 1 bin_PROGRAMS = ppstamp pstamp request pstampdump1 bin_PROGRAMS = ppstamp pstampdump 2 2 3 3 include_HEADERS = \ -
trunk/pstamp/src/ppstampMakeStamp.c
r35893 r36060 20 20 static bool setMaskedToNAN(pmConfig *config, psImage *image, psImage *mask, psImage *variance); 21 21 static bool copySources(pmReadout *outputReadout, pmReadout *inputReadout, pmReadout *astromReadout, psRegion extractRegion); 22 static bool imageHasValidPixels(psImage *image); 22 23 23 24 // convert the input chip's transforms to the output … … 337 338 status = false; 338 339 break; 340 } 341 if (!imageHasValidPixels(outReadout->image)) { 342 return PSTAMP_NO_VALID_PIXELS; 339 343 } 340 344 if (readout->variance) { … … 885 889 return true; 886 890 } 891 892 static bool 893 imageHasValidPixels(psImage *image) { 894 // check F32 image and return true if any pixel is finite 895 if (image->type.type != PS_TYPE_F32) { 896 return true; 897 } 898 for (int y=0; y<image->numRows; y++) { 899 for (int x=0; x<image->numCols; x++) { 900 psF32 pixel = image->data.F32[y][x]; 901 if (isfinite(pixel)) { 902 return true; 903 } 904 } 905 } 906 return false; 907 } -
trunk/pstamp/src/pstamp.h
r34596 r36060 15 15 PSTAMP_DUP_REQUEST = 20, 16 16 PSTAMP_INVALID_REQUEST = 21, 17 PSTAMP_UNKNOWN_PRO DUCT = 22,17 PSTAMP_UNKNOWN_PROJECT = 22, 18 18 PSTAMP_NO_IMAGE_MATCH = 23, 19 19 PSTAMP_NOT_DESTREAKED = 24, … … 21 21 PSTAMP_GONE = 26, 22 22 PSTAMP_NO_JOBS_QUEUED = 27, 23 PSTAMP_NO_OVERLAP = 28 23 PSTAMP_NO_OVERLAP = 28, 24 PSTAMP_NOT_AUTHORIZED = 29, 25 PSTAMP_NO_VALID_PIXELS = 30, 24 26 } pstampJobErrors; 25 27 … … 34 36 #define PSTAMP_SELECT_BACKMDL 32 35 37 #define PSTAMP_SELECT_JPEG 64 36 // unused12837 // unused25638 #define PSTAMP_SELECT_EXP 128 39 #define PSTAMP_SELECT_NUM 256 38 40 #define PSTAMP_SELECT_UNCOMPRESSED 512 39 41 #define PSTAMP_SELECT_INVERSE 1024 … … 44 46 45 47 #define PSTAMP_NO_WAIT_FOR_UPDATE 32768 48 #ifdef notdef 46 49 #define PSTAMP_REQUEST_UNCENSORED 0x10000 47 50 #define PSTAMP_REQUIRE_UNCENSORED 0x20000 51 #endif 48 52 49 53 #define PSTAMP_CENTER_IN_PIXELS 1
Note:
See TracChangeset
for help on using the changeset viewer.
