IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 2:43:13 PM (13 years ago)
Author:
eugene
Message:

thread psphotModelBackground, psphotAddOrSubNoise, psphotGuessModel; add recipe options to control selection of extended models fitted; iterate on the trail window a bit

Location:
trunk/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src

  • trunk/psphot/src/psphotKronIterate.c

    r34560 r35769  
    166166    }
    167167
     168    fprintf (stderr, "--- starting KRON ---\n");
     169
    168170    // We measure the Kron Radius on a smoothed copy of the readout image
    169171    psImage *smoothedImage = NULL;
    170172    if (KRON_SMOOTH) {
     173        psTimerStart ("psphot.kron.smooth");
     174
    171175        // Build the smoothed source image
    172176        // Replace the subtracted sources
    173177        psphotReplaceAllSourcesReadout(config, view, filerule, index, recipe, false);
     178        psLogMsg ("psphot.kron", PS_LOG_INFO, "replaced %ld raw sources %f sec\n", sources->n, psTimerMark ("psphot.kron.smooth"));
     179
     180        // smoothedImage = psImageCopy(NULL, readout->image, PS_TYPE_F32);
     181        // psImageSmooth(smoothedImage, KRON_SMOOTH_SIGMA, KRON_SMOOTH_NSIGMA);
     182       
    174183        // Copy the image and smooth
    175184        psTimerStart ("psphot.kron.smooth");
    176         smoothedImage = psImageCopy(NULL, readout->image, PS_TYPE_F32);
    177         psImageSmooth(smoothedImage, KRON_SMOOTH_SIGMA, KRON_SMOOTH_NSIGMA);
     185        bool oldThreads = psImageConvolveSetThreads(true); // Old value of threading in psImageConvolve
     186        smoothedImage = psImageSmoothNoMask_Threaded (NULL, readout->image, KRON_SMOOTH_SIGMA, KRON_SMOOTH_NSIGMA, 0.25);
     187        psImageConvolveSetThreads(oldThreads);
    178188        psLogMsg ("psphot.kron", PS_LOG_INFO, "smoothed image %f sec\n", psTimerMark ("psphot.kron.smooth"));
    179189
    180190        // remove the sources
     191        psTimerStart ("psphot.kron.smooth");
    181192        psphotRemoveAllSourcesReadout( config, view, filerule, index, recipe, false );
     193        psLogMsg ("psphot.kron", PS_LOG_INFO, "removed %ld raw sources %f sec\n", sources->n, psTimerMark ("psphot.kron.smooth"));
     194
    182195        // Now subtract smooth versions of the sources from the smoothed image
    183196        psTimerStart ("psphot.kron.smooth.sources");
Note: See TracChangeset for help on using the changeset viewer.