IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16585


Ignore:
Timestamp:
Feb 21, 2008, 4:00:30 PM (18 years ago)
Author:
Paul Price
Message:

Tidying up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080214/psModules/src/imcombine/pmSubtraction.c

    r16476 r16585  
    44 *  @author GLG, MHPCC
    55 *
    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 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    688688    }
    689689
    690     psImage *image, *weight;            // Image and weight map to convolve
     690    const pmReadout *source;            // Source for image parameters
    691691    switch (kernels->mode) {
    692692      case PM_SUBTRACTION_MODE_TARGET:
    693693      case PM_SUBTRACTION_MODE_1:
    694694      case PM_SUBTRACTION_MODE_DUAL:
    695         image = ro1->image;
    696         weight = ro1->weight;
     695        source = ro1;
    697696        break;
    698697      case PM_SUBTRACTION_MODE_2:
    699         image = ro2->image;
    700         weight = ro2->weight;
     698        source = ro2;
    701699        break;
    702700      default:
    703701        psAbort("Unsupported subtraction mode: %x", kernels->mode);
    704702    }
    705 
    706     int numCols = ro1->image->numCols, numRows = ro1->image->numRows; // Image dimensions
    707     int x0 = ro1->col0, y0 = ro1->row0; // Image offset
     703    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
    708706
    709707    psImage *convImage1 = out1->image;   // Convolved image
     
    805803            polyValues = p_pmSubtractionPolynomial(polyValues, kernels->spatialOrder, xNorm, yNorm);
    806804            float background = p_pmSubtractionSolutionBackground(kernels, polyValues); // Background term
    807 
     805            background = 0.0;
    808806            psRegion subRegion = psRegionSet(i, xSubMax, j, ySubMax); // Sub-region to convolve
    809807
Note: See TracChangeset for help on using the changeset viewer.