IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33431


Ignore:
Timestamp:
Mar 6, 2012, 1:54:09 PM (14 years ago)
Author:
mhuber
Message:
 
File:
1 edited

Legend:

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

    r33415 r33431  
    3030#include "pmSubtraction.h"
    3131
    32 # define FFT_WINDOW 0
    33 //#define TESTING
     32#define FFT_WINDOW 0
     33#define TESTING
    3434
    3535#define PIXEL_LIST_BUFFER 100           // Number of entries to add to pixel list at a time
     
    262262# if (FFT_WINDOW)
    263263    psImage *convolved = psImageConvolveFFTwithWindow(NULL, subImage, subMask, maskVal, kernel); // Convolution
     264    psLogMsg("psModules.imcombine", PS_LOG_DETAIL, "TESTING:: uses FFT_WINDOW");
    264265# else
    265266    psImage *convolved = psImageConvolveFFT(NULL, subImage, subMask, maskVal, kernel); // Convolution
     
    796797    pmSubtractionStamp *stamp = job->args->data[0]; // List of stamps
    797798    pmSubtractionKernels *kernels = job->args->data[1]; // Kernels
    798     int footprint = PS_SCALAR_VALUE(job->args->data[2], S32); // Stamp index
     799    int footprint = PS_SCALAR_VALUE(job->args->data[2], S32); // Stamp index -- MEH no it isnt..
    799800
    800801    return pmSubtractionConvolveStamp(stamp, kernels, footprint);
     
    831832    }
    832833
     834
    833835#ifdef TESTING
     836    //MEH fix index issue - index is supposed to be an image index but from where?
    834837    for (int j = 0; j < kernels->num; j++) {
    835838        if (stamp->convolutions1) {
    836839            psString convName = NULL;
    837             psStringAppend(&convName, "conv1_%03d_%03d.fits", index, j);
     840            //psStringAppend(&convName, "conv1_%03d_%03d.fits", index, j);
     841            psStringAppend(&convName, "conv1_xxx_%03d.fits", j);
    838842            psFits *fits = psFitsOpen(convName, "w");
    839843            psFree(convName);
     
    845849        if (stamp->convolutions2) {
    846850            psString convName = NULL;
    847             psStringAppend(&convName, "conv2_%03d_%03d.fits", index, j);
     851            //psStringAppend(&convName, "conv2_%03d_%03d.fits", index, j);
     852            psStringAppend(&convName, "conv2_xxx_%03d.fits", j);
    848853            psFits *fits = psFitsOpen(convName, "w");
    849854            psFree(convName);
Note: See TracChangeset for help on using the changeset viewer.