IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19155


Ignore:
Timestamp:
Aug 21, 2008, 4:23:55 PM (18 years ago)
Author:
Paul Price
Message:

Adding more useful way of forcing masks through: MASK.FORCE=TRUE in the camera configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigMask.c

    r19121 r19155  
    88
    99#include "pmConfigMask.h"
    10 
    11 
    12 //#define FORCE_OLD_MASKS                 // Force old masks to work (at the expense of new masks)
    1310
    1411
     
    8481    }
    8582
    86 #ifdef FORCE_OLD_MASKS
    87     return true;
    88 #endif
    89 
    9083    int nMask = psMetadataLookupS32(&status, header, "MSKNUM");
    9184    if (!status) {
     85        if (psMetadataLookupBool(&status, config->camera, "MASK.FORCE")) {
     86            psWarning("No mask values in header.  Assuming MASKS recipe is accurate because of MASK.FORCE");
     87            return true;
     88        }
    9289        psError(PS_ERR_UNKNOWN, true, "Unable to find MSKNUM in header.");
    9390        return false;
Note: See TracChangeset for help on using the changeset viewer.