Changeset 4641 for trunk/psphot/src/setup.c
- Timestamp:
- Jul 27, 2005, 6:55:51 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/setup.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/setup.c
r4630 r4641 44 44 } else { 45 45 46 // XXX EAM it looks like psBinaryOp is broken for: image op scalar 47 // this loop performs the operation by hand 46 48 noise = psImageAlloc (image->numCols, image->numRows, PS_TYPE_F32); 47 49 for (int iy = 0; iy < image->numRows; iy++) { … … 51 53 } 52 54 53 // XXX EAM it looks like psBinaryOp is broken for (image op scalar)55 // this uses psBinaryOp 54 56 # if (0) 55 57 psScalar *value; … … 65 67 } 66 68 69 // load the mask if specified, otherwise construct 67 70 char *maskName = psMetadataLookupPtr (&status, config, "MASK"); 68 71 if (status == true) { 69 72 file = psFitsAlloc (maskName); 70 73 mask = psFitsReadImage (NULL, file, region, 0); 71 // require U872 74 psFree (file); 75 // XXX require / convert mask to psU8? 73 76 } else { 74 77 mask = psImageAlloc (image->numCols, image->numRows, PS_TYPE_U8); … … 92 95 } 93 96 } 94 DumpImage (mask, "mask.fits");95 96 97 psLogMsg ("psphot", 3, "load data: %f sec\n", psTimerMark ("psphot")); 97 98 99 // save the image data & return it 98 100 psImageData *imdata = psAlloc(sizeof(psImageData)); 99 101 imdata->image = image;
Note:
See TracChangeset
for help on using the changeset viewer.
