IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 25, 2005, 9:26:44 AM (21 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmImageCombine.c

    r3878 r4028  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-05-11 00:33:44 $
     7 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-05-25 19:26:44 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    226226        //
    227227        // Loop over all pixels in all images, set the appropriate data, mask,
    228         // error vectors, call psVectorStats(), and set the result in the combine
    229         // image.
     228        // error vectors, call psVectorStats(), and set the result in the
     229        // combine image.
    230230        //
    231231        for (psS32 row = 0 ; row < numRows ; row++) {
     
    318318XXX: Use static variables.
    319319XXX: Optimization: we don't need to transform the entire mask image.
    320 XXX: The inToOut and outToIn transforms are confusing.  Verify that what I think
    321      they mean syncs with PWP.
     320XXX: The inToOut and outToIn transforms are confusing.  Verify that what
     321     I think they mean syncs with PWP.
    322322 *****************************************************************************/
    323323psArray *pmRejectPixels(const psArray *images,          ///< Array of input images
     
    356356    psS32 numCols = ((psImage *) images->data[0])->numCols;
    357357    psS32 numRows = ((psImage *) images->data[0])->numRows;
    358     psRegion *myRegion = psRegionAlloc(0, numCols-1, 0, numRows-1);
     358    psRegion myRegion = psRegionSet(0, numCols-1, 0, numRows-1);
    359359    psU32 maskVal = 1;
    360360
     
    368368        psPixels *pixelList = (psPixels *) errors->data[im];
    369369        psImage *currImage = (psImage *) images->data[im];
    370         myRegion->x0 = 0;
    371         myRegion->x1 = currImage->numCols - 1;
    372         myRegion->y0 = 0;
    373         myRegion->y1 = currImage->numRows - 1;
     370        myRegion.x0 = 0;
     371        myRegion.x1 = currImage->numCols - 1;
     372        myRegion.y0 = 0;
     373        myRegion.y1 = currImage->numRows - 1;
    374374        psPlaneTransform *myInToOut = (psPlaneTransform *) inToOut->data[im];
    375375        psPlaneTransform *myOutToIn = (psPlaneTransform *) outToIn->data[im];
     
    384384        // Transform that mask image into detector coordinate space
    385385        //
    386         psImage *transformedImage = psImageTransform(NULL, maskImage, NULL, 0, myOutToIn, NULL, 0);
     386        // XXX: conform to new psImageTransform()
     387        //        psImage *transformedImage = psImageTransform(NULL, maskImage, NULL, 0, myOutToIn, NULL, 0);
     388        psImage *transformedImage = NULL;
    387389
    388390        //
     
    457459    }
    458460
    459     psFree(myRegion);
     461    //    psFree(myRegion);
    460462    psFree(inCoords);
    461463    psFree(outCoords);
Note: See TracChangeset for help on using the changeset viewer.