IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2005, 3:10:36 PM (21 years ago)
Author:
gusciora
Message:

There are a lot of changes here required by the new SDRS. Most changes
involve the new definitions of the psAstrometry types. Not all tests work
correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmFlatField.c

    r2299 r4770  
    1818 *  @author Ross Harman, MHPCC
    1919 *
    20  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    21  *  @date $Date: 2004-11-06 02:42:03 $
     20 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     21 *  @date $Date: 2005-08-16 01:10:34 $
    2222 *
    2323 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3838
    3939
    40 bool pmFlatField(psReadout *in, const psReadout *flat)
     40bool pmFlatField(pmReadout *in, pmReadout *mask, const pmReadout *flat)
    4141{
     42    // XXX: Not sure if this is correct.  Must consult with IfA.
     43    PS_ASSERT_PTR_NON_NULL(mask, false);
    4244    int i = 0;
    4345    int j = 0;
     
    7173                 PS_ERRORTEXT_pmFlatField_NULL_FLAT_IMAGE);
    7274        return false;
    73     } else if(in->mask == NULL) {
    74         in->mask = psImageAlloc(inImage->numCols, inImage->numRows, PS_TYPE_MASK);
    75         memset(in->mask->data.V[0], 0, inImage->numCols*inImage->numRows*PSELEMTYPE_SIZEOF(PS_TYPE_MASK));
    7675    }
    77     inMask = in->mask;
     76    inMask = mask->image;
    7877
    7978    // Check input image and its mask are not larger than flat image
     79
    8080    if(inImage->numRows>flatImage->numRows || inImage->numCols>flatImage->numCols) {
    8181        psError( PS_ERR_BAD_PARAMETER_SIZE, true,
Note: See TracChangeset for help on using the changeset viewer.