IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17350


Ignore:
Timestamp:
Apr 6, 2008, 2:42:06 PM (18 years ago)
Author:
eugene
Message:

fix timer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080324/psphot/src/psphotFindPeaks.c

    r16820 r17350  
    1111
    1212    // smooth the image and weight map
    13     psTimerStart ("psphot");
     13    psTimerStart ("peaks");
    1414
    1515    // XXX if we have been supplied a PSF, we can use that to set the FWHM_X,FWHM_Y values
     
    3232    psImage *smooth_im = psImageCopy (NULL, readout->image, PS_TYPE_F32);
    3333    psImageSmoothMaskF32 (smooth_im, readout->mask, maskVal, SIGMA_SMTH, NSIGMA_SMTH);
    34     psLogMsg ("psphot", PS_LOG_MINUTIA, "smooth image: %f sec\n", psTimerMark ("psphot"));
     34    psLogMsg ("psphot", PS_LOG_MINUTIA, "smooth image: %f sec\n", psTimerMark ("peaks"));
    3535
    3636    // smooth the weight, applying the mask as we go
    3737    psImage *smooth_wt = psImageCopy (NULL, readout->weight, PS_TYPE_F32);
    3838    psImageSmoothMaskF32 (smooth_wt, readout->mask, maskVal, SIGMA_SMTH/sqrt(2), NSIGMA_SMTH);
    39     psLogMsg ("psphot", PS_LOG_MINUTIA, "smooth weight: %f sec\n", psTimerMark ("psphot"));
     39    psLogMsg ("psphot", PS_LOG_MINUTIA, "smooth weight: %f sec\n", psTimerMark ("peaks"));
    4040
    4141    psImage *mask = readout->mask;
     
    6161        }
    6262    }
    63     psLogMsg ("psphot", PS_LOG_INFO, "built smoothed signficance image: %f sec\n", psTimerMark ("psphot"));
     63    psLogMsg ("psphot", PS_LOG_INFO, "built smoothed signficance image: %f sec\n", psTimerMark ("peaks"));
    6464
    6565    // optionally save example images under trace
     
    7070    }
    7171
    72     psTimerStart ("psphot");
     72    psTimerStart ("peaks");
    7373    // set peak threshold
    7474
     
    140140        pmPeaksWriteText (peaks, output);
    141141    }
    142     psLogMsg ("psphot", PS_LOG_INFO, "%ld peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
     142    psLogMsg ("psphot", PS_LOG_INFO, "%ld peaks: %f sec\n", peaks->n, psTimerMark ("peaks"));
    143143
    144144    // If they asked us to return a set of pmFootprints, not a raw pmPeak list,
     
    167167        peaks = footprints;             // well, you know what I mean
    168168
    169         psLogMsg ("psphot", PS_LOG_INFO, "%ld footprints: %f sec\n", peaks->n, psTimerMark ("psphot"));
     169        psLogMsg ("psphot", PS_LOG_INFO, "%ld footprints: %f sec\n", peaks->n, psTimerMark ("peaks"));
    170170    }
    171171
Note: See TracChangeset for help on using the changeset viewer.