Changeset 4028 for trunk/psModules/src/pmImageCombine.c
- Timestamp:
- May 25, 2005, 9:26:44 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmImageCombine.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmImageCombine.c
r3878 r4028 5 5 * @author GLG, MHPCC 6 6 * 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 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 226 226 // 227 227 // Loop over all pixels in all images, set the appropriate data, mask, 228 // error vectors, call psVectorStats(), and set the result in the combine229 // image.228 // error vectors, call psVectorStats(), and set the result in the 229 // combine image. 230 230 // 231 231 for (psS32 row = 0 ; row < numRows ; row++) { … … 318 318 XXX: Use static variables. 319 319 XXX: Optimization: we don't need to transform the entire mask image. 320 XXX: The inToOut and outToIn transforms are confusing. Verify that what I think321 they mean syncs with PWP.320 XXX: The inToOut and outToIn transforms are confusing. Verify that what 321 I think they mean syncs with PWP. 322 322 *****************************************************************************/ 323 323 psArray *pmRejectPixels(const psArray *images, ///< Array of input images … … 356 356 psS32 numCols = ((psImage *) images->data[0])->numCols; 357 357 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); 359 359 psU32 maskVal = 1; 360 360 … … 368 368 psPixels *pixelList = (psPixels *) errors->data[im]; 369 369 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; 374 374 psPlaneTransform *myInToOut = (psPlaneTransform *) inToOut->data[im]; 375 375 psPlaneTransform *myOutToIn = (psPlaneTransform *) outToIn->data[im]; … … 384 384 // Transform that mask image into detector coordinate space 385 385 // 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; 387 389 388 390 // … … 457 459 } 458 460 459 psFree(myRegion);461 // psFree(myRegion); 460 462 psFree(inCoords); 461 463 psFree(outCoords);
Note:
See TracChangeset
for help on using the changeset viewer.
