Changeset 16585
- Timestamp:
- Feb 21, 2008, 4:00:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_080214/psModules/src/imcombine/pmSubtraction.c
r16476 r16585 4 4 * @author GLG, MHPCC 5 5 * 6 * @version $Revision: 1.79 $ $Name: not supported by cvs2svn $7 * @date $Date: 2008-02- 14 23:18:34$6 * @version $Revision: 1.79.2.1 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2008-02-22 02:00:30 $ 8 8 * 9 9 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 688 688 } 689 689 690 psImage *image, *weight; // Image and weight map to convolve690 const pmReadout *source; // Source for image parameters 691 691 switch (kernels->mode) { 692 692 case PM_SUBTRACTION_MODE_TARGET: 693 693 case PM_SUBTRACTION_MODE_1: 694 694 case PM_SUBTRACTION_MODE_DUAL: 695 image = ro1->image; 696 weight = ro1->weight; 695 source = ro1; 697 696 break; 698 697 case PM_SUBTRACTION_MODE_2: 699 image = ro2->image; 700 weight = ro2->weight; 698 source = ro2; 701 699 break; 702 700 default: 703 701 psAbort("Unsupported subtraction mode: %x", kernels->mode); 704 702 } 705 706 int numCols = ro1->image->numCols, numRows = ro1->image->numRows; // Image dimensions707 int x0 = ro1->col0, y0 = ro1->row0; // Image offset703 psImage *image = source->image, *weight = source->weight; // Image and weight map to convolve 704 int numCols = image->numCols, numRows = image->numRows; // Image dimensions 705 int x0 = source->col0, y0 = source->row0; // Image offset 708 706 709 707 psImage *convImage1 = out1->image; // Convolved image … … 805 803 polyValues = p_pmSubtractionPolynomial(polyValues, kernels->spatialOrder, xNorm, yNorm); 806 804 float background = p_pmSubtractionSolutionBackground(kernels, polyValues); // Background term 807 805 background = 0.0; 808 806 psRegion subRegion = psRegionSet(i, xSubMax, j, ySubMax); // Sub-region to convolve 809 807
Note:
See TracChangeset
for help on using the changeset viewer.
