IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 2, 2006, 1:30:35 PM (20 years ago)
Author:
eugene
Message:

updated to use new image/subimage/region coordinate consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/pmCellSetMask.c

    r6117 r6311  
    66
    77    // mask the excluded outer pixels
     8    // these coordinates refer to the parent image
     9    // these bounds will saturate on the subimage
     10    // negative upper bounds will subtract from the *subimage*
    811    float XMIN  = psMetadataLookupF32 (&status, recipe, "XMIN");
    912    float XMAX  = psMetadataLookupF32 (&status, recipe, "XMAX");
     
    1720        pmReadout *readout = readouts->data[i]; // The readout of interest
    1821
     22        // psRegionForImage creates a region for the subimage, not the parent
     23        // XXX I propose that psRegionForImage treat the region as referring to the parent...
    1924        psRegion keep = psRegionForImage (readout->image, valid);
     25
     26        // psImageKeepRegion assumes the region refers to the parent coordinates
    2027        psImageKeepRegion (readout->mask, keep, "OR", PSPHOT_MASK_INVALID);
    2128    }
Note: See TracChangeset for help on using the changeset viewer.