IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 23, 2006, 1:36:49 PM (20 years ago)
Author:
Paul Price
Message:

Type conversion (to F32) for pmReadoutRead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPARead.c

    r7168 r7186  
    120120    psImage *image = psFitsReadImage(fits, toRead, z); // Desired pixels
    121121
     122    // XXX: We only support F32 for now
     123    if (image->type.type != PS_TYPE_F32) {
     124        psImage *temp = psImageCopy(NULL, image, PS_TYPE_F32);
     125        psFree(image);
     126        image = temp;
     127    }
     128
    122129    if (resize) {
    123130        // For some reason, the region of interest is smaller than the number of pixels we want.
Note: See TracChangeset for help on using the changeset viewer.