Changeset 30620 for trunk/ppStack/src/ppStackMatch.c
- Timestamp:
- Feb 13, 2011, 11:52:31 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackMatch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackMatch.c
r29552 r30620 1 #ifdef HAVE_CONFIG_H2 #include <config.h>3 #endif4 5 #include <stdio.h>6 #include <pslib.h>7 #include <psmodules.h>8 #include <psphot.h>9 10 1 #include "ppStack.h" 11 2 … … 325 316 // Scale the input parameters 326 317 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 // } 338 335 339 336 if (!pmSubtractionMatch(NULL, conv, fake, readout, footprint, stride, regionSize, spacing,
Note:
See TracChangeset
for help on using the changeset viewer.
