IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2011, 12:08:17 PM (15 years ago)
Author:
eugene
Message:

cleaned up some of the commented out PATTERN.* code; added clarifying comments regarding recipe / format rules for PATTERN.*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageOptions.c

    r30878 r31066  
    239239    options->doShutter = psMetadataLookupBool(NULL, recipe, "SHUTTER");
    240240
    241     // Look for pattern correction options in the camera format. If not found, look in the recipe.
    242 /*     if (psMetadataLookup(format, "PATTERN.ROW")) { */
    243 /*       options->doPatternRow = psMetadataLookupBool(NULL, format, "PATTERN.ROW"); */
    244 /*     } */
    245 /*     else { */
     241    // PATTERN.ROW is selected by the recipe.  If it is selected, we search for the table
     242    // PATTERN.ROW.SUBSET.  If this is found in our format file, we use that version;
     243    // otherwise, we use the table provided in the recipe file "ppImage.config".  Within that
     244    // table, we select the entry that matches our CHIP.NAME.  This will be either a boolean or
     245    // a string of bits.  If it is a boolean, it specified whether or not to correct the entire
     246    // chip; if it is a string, the bits specify which cells to correct (sequence is order of
     247    // CELLS in the format:CHIPS metadata table)
     248
     249    // We also check the chip header for the boolean 'PTRN_ROW' : if this is true, we have
     250    // already applied this correct to this data, so we simply skip the correction for this
     251    // chip.
     252
    246253    options->doPatternRow = psMetadataLookupBool(NULL, recipe, "PATTERN.ROW");
    247 /*     } */
    248 /*     if (psMetadataLookup(format, "PATTERN.CELL")) { */
    249 /*       options->doPatternCell = psMetadataLookupBool(NULL, format, "PATTERN.CELL"); */
    250 /*     } */
    251 /*     else { */
    252254    options->doPatternCell = psMetadataLookupBool(NULL, recipe, "PATTERN.CELL");
    253 /*     } */
     255
    254256    options->doMaskStats = psMetadataLookupBool(NULL, recipe, "MASK.STATS");
    255257    options->addNoise = psMetadataLookupBool(NULL, recipe, "ADDNOISE");
Note: See TracChangeset for help on using the changeset viewer.