IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7432


Ignore:
Timestamp:
Jun 8, 2006, 10:40:36 AM (20 years ago)
Author:
magnier
Message:

mask type (was F32), parent reference in finding readout, mask and weight pointed to image in loop

File:
1 edited

Legend:

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

    r7417 r7432  
    3434            continue;
    3535        }
    36         masks->data[i] = psImageAlloc(image->numCols, image->numRows, PS_TYPE_F32);
     36        masks->data[i] = psImageAlloc(image->numCols, image->numRows, PS_TYPE_U8);
    3737    }
    3838
     
    7878    long index = -1;                    // Index of the readout
    7979    for (long i = 0; i < hdu->images->n && index == -1; i++) {
    80         if (hdu->images->data[i] == readout->image) {
     80        if (hdu->images->data[i] == readout->image->parent) {
    8181            index = i;
    8282        }
     
    135135        }
    136136
    137         psImage *mask = psImageSubset(hdu->images->data[index], *trimsec); // The mask pixels
     137        psImage *mask = psImageSubset(hdu->masks->data[index], *trimsec); // The mask pixels
    138138        if (!mask) {
    139139            psString trimsecString = psRegionToString(*trimsec);
     
    207207        }
    208208
    209         psImage *weight = psImageSubset(hdu->images->data[index], *trimsec); // The weight pixels
     209        psImage *weight = psImageSubset(hdu->weights->data[index], *trimsec); // The weight pixels
    210210        if (!weight) {
    211211            psString trimsecString = psRegionToString(*trimsec);
Note: See TracChangeset for help on using the changeset viewer.