IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 5:10:36 PM (17 years ago)
Author:
Paul Price
Message:

Merging pap_branch_20090128. Resolved a small number of conflicts. Compiles, but not tested in detail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpSetMaskBits.c

    r21323 r21368  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-05 20:44:04 $
     8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-06 03:10:36 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
     
    2020 * updated in the config metadata.
    2121 */
    22 bool pswarpSetMaskBits (pmConfig *config) {
    23 
    24     psImageMaskType maskIn = 0x00;                      ///< mask for the input image
    25     psImageMaskType markIn = 0x00;                      ///< mark for the input image
    26     psImageMaskType maskOut = 0x00;                     ///< mask for the output image
     22bool pswarpSetMaskBits (pmConfig *config)
     23{
     24    psImageMaskType maskIn = 0x00;                      // mask for the input image
     25    psImageMaskType markIn = 0x00;                      // mark for the input image
     26    psImageMaskType maskOut = 0x00;                     // mask for the output image
    2727
    2828    // this function sets the required single-image mask bits
    2929    if (!pmConfigMaskSetBits (&maskIn, &markIn, config)) {
    30         psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values");
    31         return false;
     30        psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values");
     31        return false;
    3232    }
    3333
    3434    // mask for non-linear flat regions (default to DETECTOR if not defined)
    35     psImageMaskType badMask = pmConfigMaskGet("BAD.WARP", config); 
     35    psImageMaskType badMask = pmConfigMaskGet("BAD.WARP", config);
    3636    if (!badMask) {
    37         badMask = 0x01;
    38         pmConfigMaskSet (config, "BAD.WARP", badMask);
     37        badMask = 0x01;
     38        pmConfigMaskSet (config, "BAD.WARP", badMask);
    3939    }
    4040    maskOut |= badMask;
    4141
    4242    // mask for non-linear flat regions (default to DETECTOR if not defined)
    43     psImageMaskType poorMask = pmConfigMaskGet("POOR.WARP", config); 
     43    psImageMaskType poorMask = pmConfigMaskGet("POOR.WARP", config);
    4444    if (!poorMask) {
    45         poorMask = 0x02;
    46         pmConfigMaskSet (config, "POOR.WARP", poorMask);
     45        poorMask = 0x02;
     46        pmConfigMaskSet (config, "POOR.WARP", poorMask);
    4747    }
    4848    maskOut |= poorMask;
Note: See TracChangeset for help on using the changeset viewer.