IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2009, 2:33:51 PM (17 years ago)
Author:
Paul Price
Message:

Changing pmReadout.weight to variance. Adding pmReadout.covariance which will carry around a covariance pseudo-matrix, allowing us to calculate the pixel-to-pixel variance. pmReadout.covariance now exists and is set, but no mechanism yet to read/write, or use it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/psModules/src/imcombine/pmStack.c

    r21183 r21211  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2009-01-27 06:39:38 $
     10 *  @version $Revision: 1.46.2.1 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2009-01-29 00:33:51 $
    1212 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
    1313 *
     
    263263
    264264        psImage *image = data->readout->image; // Image of interest
    265         psImage *variance = data->readout->weight; // Variance ("weight") map of interest
     265        psImage *variance = data->readout->variance; // Variance map of interest
    266266        pixelData->data.F32[num] = image->data.F32[yIn][xIn];
    267267        if (variance) {
     
    442442    *numCols = data->readout->image->numCols;
    443443    *numRows = data->readout->image->numRows;
    444     if (data->readout->weight) {
     444    if (data->readout->variance) {
    445445        *haveVariances = true;
    446         PS_ASSERT_IMAGE_NON_NULL(data->readout->weight, false);
    447         PS_ASSERT_IMAGES_SIZE_EQUAL(data->readout->image, data->readout->weight, false);
    448         PS_ASSERT_IMAGE_TYPE(data->readout->weight, PS_TYPE_F32, false);
     446        PS_ASSERT_IMAGE_NON_NULL(data->readout->variance, false);
     447        PS_ASSERT_IMAGES_SIZE_EQUAL(data->readout->image, data->readout->variance, false);
     448        PS_ASSERT_IMAGE_TYPE(data->readout->variance, PS_TYPE_F32, false);
    449449    }
    450450    *haveRejects = (data->reject != NULL);
     
    473473        PS_ASSERT_IMAGES_SIZE_EQUAL(data->readout->image, data->readout->mask, false);
    474474        if (*haveVariances) {
    475             PS_ASSERT_IMAGE_NON_NULL(data->readout->weight, false);
    476             PS_ASSERT_IMAGES_SIZE_EQUAL(data->readout->image, data->readout->weight, false);
    477             PS_ASSERT_IMAGE_TYPE(data->readout->weight, PS_TYPE_F32, false);
     475            PS_ASSERT_IMAGE_NON_NULL(data->readout->variance, false);
     476            PS_ASSERT_IMAGES_SIZE_EQUAL(data->readout->image, data->readout->variance, false);
     477            PS_ASSERT_IMAGE_TYPE(data->readout->variance, PS_TYPE_F32, false);
    478478        }
    479479    }
     
    649649        psImage *combinedImage = combined->image; // Combined image
    650650        psImage *combinedMask = combined->mask; // Combined mask
    651         psImage *combinedVariance = combined->weight; // Combined variance map
     651        psImage *combinedVariance = combined->variance; // Combined variance map
    652652
    653653        psArray *pixelMap = pixelMapGenerate(input, minInputCols, maxInputCols,
     
    702702        }
    703703
    704         psImage *combinedVariance = combined->weight; // Combined variance map
     704        psImage *combinedVariance = combined->variance; // Combined variance map
    705705        if (haveVariances && !combinedVariance) {
    706             combined->weight = psImageAlloc(numCols, numRows, PS_TYPE_F32);
    707             combinedVariance = combined->weight;
     706            combined->variance = psImageAlloc(numCols, numRows, PS_TYPE_F32);
     707            combinedVariance = combined->variance;
    708708        }
    709709
Note: See TracChangeset for help on using the changeset viewer.