IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2005, 6:55:51 PM (21 years ago)
Author:
eugene
Message:

general cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/setup.c

    r4630 r4641  
    4444    } else {
    4545
     46      // XXX EAM it looks like psBinaryOp is broken for: image op scalar
     47      // this loop performs the operation by hand
    4648      noise = psImageAlloc (image->numCols, image->numRows, PS_TYPE_F32);
    4749      for (int iy = 0; iy < image->numRows; iy++) {
     
    5153      }
    5254
    53       // XXX EAM it looks like psBinaryOp is broken for (image op scalar)
     55      // this uses psBinaryOp
    5456      # if (0)
    5557      psScalar *value;
     
    6567    }
    6668
     69    // load the mask if specified, otherwise construct
    6770    char *maskName = psMetadataLookupPtr (&status, config, "MASK");
    6871    if (status == true) {
    6972      file = psFitsAlloc (maskName);
    7073      mask  = psFitsReadImage  (NULL, file, region, 0);
    71       // require U8
    7274      psFree (file);
     75      // XXX require / convert mask to psU8?
    7376    } else {
    7477      mask = psImageAlloc (image->numCols, image->numRows, PS_TYPE_U8);
     
    9295        }
    9396    }
    94     DumpImage (mask, "mask.fits");
    95 
    9697    psLogMsg ("psphot", 3, "load data: %f sec\n", psTimerMark ("psphot"));
    9798
     99    // save the image data & return it
    98100    psImageData *imdata = psAlloc(sizeof(psImageData));
    99101    imdata->image = image;
Note: See TracChangeset for help on using the changeset viewer.