IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29388 for trunk/pstamp


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.