IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 19, 2006, 2:55:33 PM (21 years ago)
Author:
eugene
Message:

adapted everything to work with pmReadout *readout instead of eamReadout *imdata

File:
1 edited

Legend:

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

    r5993 r6056  
    22
    33bool psphotDefinePixels(pmSource *mySource,
    4                         const eamReadout *imdata,
     4                        const pmReadout *readout,
    55                        psF32 x,
    66                        psF32 y,
     
    1111    // Grab a subimage of the original image of size (2 * outerRadius).
    1212    srcRegion = psRegionForSquare (x, y, Radius);
    13     srcRegion = psRegionForImage (imdata->image, srcRegion);
     13    srcRegion = psRegionForImage (readout->image, srcRegion);
    1414
    15     mySource->pixels = psImageSubset(imdata->image, srcRegion);
    16     mySource->weight = psImageSubset(imdata->weight, srcRegion);
    17     mySource->mask   = psImageSubset(imdata->mask,  srcRegion);
     15    mySource->pixels = psImageSubset(readout->image, srcRegion);
     16    mySource->weight = psImageSubset(readout->weight, srcRegion);
     17    mySource->mask   = psImageSubset(readout->mask,  srcRegion);
    1818    mySource->region = srcRegion;
    1919
     
    2222
    2323bool psphotRedefinePixels(pmSource *mySource,
    24                           const eamReadout *imdata,
     24                          const pmReadout *readout,
    2525                          psF32 x,
    2626                          psF32 y,
     
    3434    // check to see if new region is completely contained within old region
    3535    newRegion = psRegionForSquare (x, y, Radius);
    36     newRegion = psRegionForImage (imdata->image, newRegion);
     36    newRegion = psRegionForImage (readout->image, newRegion);
    3737
    3838    extend = false;
     
    5353        psFree (mySource->mask);
    5454
    55         mySource->pixels = psImageSubset(imdata->image,  newRegion);
    56         mySource->weight = psImageSubset(imdata->weight, newRegion);
    57         mySource->mask   = psImageSubset(imdata->mask,   newRegion);
     55        mySource->pixels = psImageSubset(readout->image,  newRegion);
     56        mySource->weight = psImageSubset(readout->weight, newRegion);
     57        mySource->mask   = psImageSubset(readout->mask,   newRegion);
    5858        mySource->region = newRegion;
    5959    }
Note: See TracChangeset for help on using the changeset viewer.