Changeset 14528
- Timestamp:
- Aug 15, 2007, 5:58:29 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmSubtraction.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtraction.c
r14527 r14528 4 4 * @author GLG, MHPCC 5 5 * 6 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-08-16 03:5 5:52$6 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-08-16 03:58:29 $ 8 8 * 9 9 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 696 696 psImage *convolvedStamp = convolution->image; // Image of the convolution 697 697 psImage *input = stamp->input->image; // Input image postage stamp 698 psImage *weight = stamp->weight->image; // Weight image postage stamp 698 699 699 700 // Region of interest 700 psRegion region = psRegionSet(input->col0 + size, input->col0 + size + 2 * footprint + 1,701 psRegion inRegion = psRegionSet(input->col0 + size, input->col0 + size + 2 * footprint + 1, 701 702 input->row0 + size, input->row0 + size + 2 * footprint + 1); 702 703 psImage *inStamp = psImageSubset(stamp->input->image, region); // Image of stamp 704 psImage *wtStamp = psImageSubset(stamp->weight->image, region); // Image of stamp 703 psRegion wtRegion = (input == weight ? inRegion : 704 psRegionSet(weight->col0 + size, weight->col0 + size + 2 * footprint + 1, 705 weight->row0 + size, weight->row0 + size + 2 * footprint + 1)); 706 707 psImage *inStamp = psImageSubset(stamp->input->image, inRegion); // Image of stamp 708 psImage *wtStamp = psImageSubset(stamp->weight->image, wtRegion); // Image of stamp 705 709 assert(convolvedStamp->numCols == inStamp->numCols && 706 710 convolvedStamp->numRows == inStamp->numRows);
Note:
See TracChangeset
for help on using the changeset viewer.
