Changeset 21183 for trunk/psModules/src/config/pmConfigMask.h
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfigMask.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfigMask.h
r18598 r21183 4 4 * @author Paul Price, IfA 5 5 * 6 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $7 * @date $Date: 200 8-07-17 20:37:20$6 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2009-01-27 06:39:38 $ 8 8 * Copyright 2007 Institute for Astronomy, University of Hawaii 9 9 */ … … 20 20 /// @{ 21 21 22 // structure to hold the properties of a mask value 23 typedef struct { 24 char *badMaskName; // name for "bad" (i.e., mask me please) pixels 25 char *fallbackName; // Fallback name in case a bad mask name is not defined 26 psImageMaskType defaultMaskValue; // Default value in case a bad mask name and its fallback are not defined 27 bool isBad; // include this value as part of the MASK.VALUE entry (generically bad) 28 } pmConfigMaskInfo; 29 30 // pmConfigMaskSetInMetadata examines named mask values and set the bits for maskValue and 31 // markValue. Ensures that the below-named mask values are set, and calculates the mask value 32 // to catch all of the mask values marked as 'bad'. Supplies the fallback name if the primary 33 // name is not found, or the default values if the fallback name is not found. 34 bool pmConfigMaskSetInMetadata(psImageMaskType *outMaskValue, // Value of MASK.VALUE, returned 35 psImageMaskType *outMarkValue, // Value of MARK.VALUE, returned 36 psMetadata *source // Source of mask bits 37 ); 38 39 40 // Get a mask value by name(s) 41 psImageMaskType pmConfigMaskGetFromMetadata(psMetadata *source, // Source of masks 42 const char *masks // Mask values to get 43 ); 44 45 46 // lookup an image mask value by name from a psMetadata, without requiring the entry to 47 // be of type psImageMaskType, but verifying that it will fit in psImageMaskType 48 psImageMaskType psMetadataLookupImageMaskFromGeneric (bool *status, const psMetadata *md, const char *name); 49 50 // Remove from the header keywords starting with the provided string 51 int pmConfigMaskRemoveHeaderKeywords(psMetadata *header, // Header from which to remove keywords 52 const char *start // Remove keywords that start with this string 53 ); 54 22 55 /// Return a mask value given a list of symbolic names 23 56 /// 24 57 /// The mask values are derived from the MASKS recipe 25 ps MaskType pmConfigMaskGet(const char *masks, ///< List of symbolic names, space/comma delimited58 psImageMaskType pmConfigMaskGet(const char *masks, ///< List of symbolic names, space/comma delimited 26 59 const pmConfig *config ///< Configuration 27 60 ); 28 61 29 bool pmConfigMaskSet(const pmConfig *config, const char *maskName, ps MaskType maskValue);62 bool pmConfigMaskSet(const pmConfig *config, const char *maskName, psImageMaskType maskValue); 30 63 31 64 // replace the named masks in the recipe with values in the header: … … 36 69 bool pmConfigMaskWriteHeader(const pmConfig *config, psMetadata *header); 37 70 38 bool pmConfigMaskSetBits(ps MaskType *outMaskValue, psMaskType *outMarkValue, const pmConfig *config);71 bool pmConfigMaskSetBits(psImageMaskType *outMaskValue, psImageMaskType *outMarkValue, const pmConfig *config); 39 72 40 73 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
