IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2011, 11:52:31 AM (15 years ago)
Author:
eugene
Message:

some reorganization: create ppStackUpdateHeader, ppStackStats, ppStackJPEG functions to clean up ppStackLoop; plug some leaks; cleanup include sections; create ppStackCleanup for end of processing (renamed old ppStackCleanup to ppStackCleanupFiles); move jpeg creation from ppStackCleanupFiles to ppStackJPEG; same for stats; adjust kernel auto-scaling to take place after we have measured the source sizes; update headers with stack_id, skycell_id, tess_id (optional)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackMatch.c

    r29552 r30620  
    1 #ifdef HAVE_CONFIG_H
    2 #include <config.h>
    3 #endif
    4 
    5 #include <stdio.h>
    6 #include <pslib.h>
    7 #include <psmodules.h>
    8 #include <psphot.h>
    9 
    101#include "ppStack.h"
    112
     
    325316                // Scale the input parameters
    326317                psVector *widthsCopy = psVectorCopy(NULL, widths, PS_TYPE_F32); // Copy of kernel widths
    327                 if (scale && !pmSubtractionParamsScale(&size, &footprint, widthsCopy, scaleRef, scaleMin, scaleMax)) {
    328                     psError(psErrorCodeLast(), false, "Unable to scale kernel parameters");
    329                     psFree(fake);
    330                     psFree(optWidths);
    331                     psFree(conv);
    332                     psFree(widthsCopy);
    333                     if (threads > 0) {
    334                         pmSubtractionThreadsFinalize();
    335                     }
    336                     return false;
    337                 }
     318
     319                pmSubtractionParamScaleOptions(scale, scaleRef, scaleMin, scaleMax);
     320
     321                // XXX EAM : the kernel scaling process has changed: the scale is now set
     322                // inside pmSubtractionMatch after the normalization window is measured
     323
     324                // if (scale && !pmSubtractionParamsScale(&size, &footprint, widthsCopy, scaleRef, scaleMin, scaleMax)) {
     325                //     psError(psErrorCodeLast(), false, "Unable to scale kernel parameters");
     326                //     psFree(fake);
     327                //     psFree(optWidths);
     328                //     psFree(conv);
     329                //     psFree(widthsCopy);
     330                //     if (threads > 0) {
     331                //         pmSubtractionThreadsFinalize();
     332                //     }
     333                //     return false;
     334                // }
    338335
    339336                if (!pmSubtractionMatch(NULL, conv, fake, readout, footprint, stride, regionSize, spacing,
Note: See TracChangeset for help on using the changeset viewer.