IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 20, 2004, 10:36:46 AM (22 years ago)
Author:
harman
Message:

Updated tests

File:
1 edited

Legend:

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

    r1822 r1832  
    1818 *  @author Ross Harman, MHPCC
    1919 *
    20  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    21  *  @date $Date: 2004-09-17 00:49:04 $
     20 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     21 *  @date $Date: 2004-09-20 20:36:46 $
    2222 *
    2323 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5858
    5959    inImage = in->image;
    60     inMask = in->mask;
    6160    flatImage = flat->image;
    6261    if (inImage == NULL) {
    6362        psError(__func__, " : Line %d - Null not allowed for input image", __LINE__);
    6463        return false;
    65     } else if(flatImage) {
     64    } else if(flatImage == NULL) {
    6665        psError(__func__, " : Line %d - Null not allowed for flat image", __LINE__);
    6766        return false;
    68     } else if(inMask == NULL) {
    69         inMask = psImageAlloc(inImage->numCols, inImage->numRows, PS_TYPE_MASK);
     67    } else if(in->mask == NULL) {
     68        in->mask = psImageAlloc(inImage->numCols, inImage->numRows, PS_TYPE_MASK);
    7069    }
     70    inMask = in->mask;
    7171
    7272    // Check input image and its mask are not larger than flat image
     
    178178    }
    179179
     180    printf("");
    180181    return true;
    181182}
Note: See TracChangeset for help on using the changeset viewer.