IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6671


Ignore:
Timestamp:
Mar 21, 2006, 6:21:13 PM (20 years ago)
Author:
Paul Price
Message:

Converting input images to F32 as they are read.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmFPARead.c

    r6663 r6671  
    9292    for (int i = 0; i < hdu->images->n; i++) {
    9393        psImage *image = hdu->images->data[i]; // The i-th plane
     94
     95        // XXX: Type conversion here to support the modules, which don't have multiple type support yet
     96        if (image->type.type != PS_TYPE_F32) {
     97            psImage *temp = psImageCopy(NULL, image, PS_TYPE_F32); // Temporary image
     98            psFree(hdu->images->data[i]);
     99            hdu->images->data[i] = temp;
     100            image = temp;
     101        }
     102
    94103        pmReadout *readout = readoutCarve(cell, image, trimsec, biassecs);
    95104        readout->mask = NULL;
Note: See TracChangeset for help on using the changeset viewer.