IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29388


Ignore:
Timestamp:
Oct 13, 2010, 11:14:15 AM (16 years ago)
Author:
bills
Message:

Look up set of mask bits to not censor in camera.config. Add STARCORE and SPIKE to the list
of bits not censored

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/gpc1/camera.config

    r28089 r29388  
    160160NPIX_MAX                    S32     1455690816
    161161NPIX_INTERCHIP          S32     103794483
     162
     163# The set of maskbits that should not be set to NAN in "released" images
     164# This value is equal to CONV.POOR | STARCORE | SPIKE | SUSPECT
     165MASK.NO.CENSOR      U32      0x5280
     166
  • trunk/psModules/src/extras/Makefile.am

    r29004 r29388  
    1010        pmVisual.c \
    1111        pmVisualUtils.c \
    12         ippStages.c
     12        ippStages.c \
     13        pmCensor.c
    1314
    1415pkginclude_HEADERS = \
     
    2021        pmVisualUtils.h \
    2122        ippDiffMode.h \
    22         ippStages.h
     23        ippStages.h \
     24        pmCensor.h
    2325
    2426CLEANFILES = *~
  • trunk/psModules/src/psmodules.h

    r29004 r29388  
    1313#include <ippStages.h>
    1414#include <ippDiffMode.h>
     15#include <pmCensor.h>
    1516
    1617// XXX the following headers define constructs needed by the elements below
  • trunk/pstamp/src/ppstampMakeStamp.c

    r29379 r29388  
    679679static bool setMaskedToNAN(pmConfig *config, psImage *image, psImage *mask, psImage *variance)
    680680{
     681#ifdef notdef
    681682    bool status;
    682683    psMetadata *masks = psMetadataLookupMetadata(&status, config->recipes, "MASKS");
     
    724725        }
    725726    }
    726     fprintf(stderr, "excised %ld masked pixels\n", numExcised);
     727#endif
     728
     729    long numCensored;
     730    if (!pmCensorMasked(config, image, mask, variance, &numCensored)) {
     731        psError(PS_ERR_UNKNOWN, false, "Failed to censor masked pixels.\n");
     732        return false;
     733    }
     734
     735    // XXX: this shouldn't be a fprintf
     736    fprintf(stderr, "Censored %ld masked pixels\n", numCensored);
    727737
    728738    return true;
Note: See TracChangeset for help on using the changeset viewer.