IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 24, 2009, 10:54:29 AM (17 years ago)
Author:
eugene
Message:

clean up threading model for psphotGuessModel (defined standard way to split sources into regions); extending the threading to psphotMagnitudes, psphotApReset, psphotBlendFit, psphotSourceStats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.h

    r21108 r21166  
    1212
    1313#define PSPHOT_RECIPE_PSF_FAKE_ALLOW "PSF.FAKE.ALLOW" // Name for recipe component permitting fake PSFs
    14 
    15 typedef struct {
    16     pmReadout *readout;
    17     psArray *sources;
    18     pmPSF *psf;
    19     psRegion *region;
    20     psMaskType maskVal;
    21     psMaskType markVal;
    22 } psphotGuessModelForRegionArgs;
    2314
    2415// top-level psphot functions
     
    4334pmDetections   *psphotFindDetections (pmDetections *detections, pmReadout *readout, psMetadata *recipe);
    4435
    45 psArray        *psphotSourceStats (pmReadout *readout, psMetadata *recipe, pmDetections *detections);
    4636bool            psphotRoughClass (pmReadout *readout, psArray *sources, psMetadata *recipe, const bool findPsfClump);
    4737bool            psphotBasicDeblend (psArray *sources, psMetadata *recipe);
     
    5040bool            psphotMomentsStats (pmReadout *readout, psMetadata *recipe, psArray *sources);
    5141bool            psphotFitSourcesLinear (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, bool final);
    52 bool            psphotGuessModels (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf);
    53 bool            psphotGuessModelForRegion (psphotGuessModelForRegionArgs *args);
    54 bool            psphotBlendFit (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf);
    5542bool            psphotReplaceUnfitSources (psArray *sources, psMaskType maskVal);
    5643bool            psphotReplaceAllSources (psArray *sources, psMetadata *recipe);
    5744bool            psphotRemoveAllSources (psArray *sources, psMetadata *recipe);
    58 bool            psphotApResid (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf);
    59 bool            psphotMagnitudes (pmConfig *config, const pmFPAview *view, psArray *sources, psMetadata *recipe, pmPSF *psf);
     45
     46bool            psphotBlendFit (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf);
     47bool            psphotBlendFit_Threaded (psThreadJob *job);
     48
     49psArray        *psphotSourceStats (pmConfig *config, pmReadout *readout, pmDetections *detections);
     50bool            psphotSourceStats_Threaded (psThreadJob *job);
     51
     52bool            psphotGuessModels (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf);
     53bool            psphotGuessModel_Threaded (psThreadJob *job);
     54
     55bool            psphotMagnitudes (pmConfig *config, pmReadout *readout, const pmFPAview *view, psArray *sources, pmPSF *psf);
     56bool            psphotMagnitudes_Threaded (psThreadJob *job);
     57
     58bool            psphotApResid (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf);
     59bool            psphotApResidMags_Threaded (psThreadJob *job);
     60
    6061bool            psphotSkyReplace (pmConfig *config, const pmFPAview *view);
    6162bool            psphotExtendedSourceAnalysis (pmReadout *readout, psArray *sources, psMetadata *recipe);
    6263bool            psphotExtendedSourceFits (pmReadout *readout, psArray *sources, psMetadata *recipe);
     64
     65// thread-related:
    6366bool            psphotSetThreads ();
     67bool            psphotChooseCellSizes (int *Cx, int *Cy, pmReadout *readout, int nThreads);
     68bool            psphotCoordToCell (int *group, int *cell, float x, float y, int Cx, int Cy);
     69psArray        *psphotAssignSources (int Cx, int Cy, psArray *sources);
    6470
    6571// used by psphotFindDetections
Note: See TracChangeset for help on using the changeset viewer.