Changeset 6715 for trunk/psphot/src/psphot.h
- Timestamp:
- Mar 27, 2006, 4:31:17 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphot.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r6571 r6715 3 3 # include <unistd.h> // for unlink 4 4 # include <pslib.h> 5 # include <pmObjects.h> 5 # include <psmodules.h> 6 7 # if (0) 8 # include <psLine.h> 9 # include <psSparse.h> 10 # include <psEllipse.h> 11 # include <psAdditionals.h> 12 # include <pmConfig.h> 13 # include <pmHDU.h> 14 # include <pmHDUUtils.h> 15 # include <pmFPA.h> 16 # include <pmFPAview.h> 17 # include <pmFPAfile.h> 18 # include <pmFPARead.h> 19 # include <pmFPAConstruct.h> 20 # include <pmMaskBadPixels.h> 21 # include <pmConcepts.h> 22 23 # include <pmPeaks.h> 24 # include <pmMoments.h> 25 # include <pmModel.h> 26 # include <pmSource.h> 27 # include <pmSourceIO.h> 28 # include <pmSourceSky.h> 29 # include <pmSourceFitModel.h> 30 # include <pmSourceFitSet.h> 31 # include <pmSourceContour.h> 6 32 # include <pmGrowthCurve.h> 7 # include <pmConfig.h>8 # include <pmFPARead.h>9 33 # include <pmPSF.h> 10 34 # include <pmPSFtry.h> 11 35 # include <pmModelGroup.h> 12 // # include "psLibUtils.h" 13 // # include "psModulesUtils.h" 14 // # include "psSparse.h" 15 # include "pmFPAConstruct.h" 16 # include "pmConcepts.h" 36 # include <pmSourcePhotometry.h> 37 # endif 17 38 18 39 # define PSPHOT_RECIPE "PSPHOT" … … 26 47 27 48 bool psphotModelTest (pmReadout *readout, psMetadata *arguments, psMetadata *recipe); 28 bool psphotReadout (pm Readout *readout, psMetadata *config);49 bool psphotReadout (pmConfig *config, pmFPAview *view); 29 50 void psphotCleanup (void); 30 51 31 // bool ppImageLoadPixels (ppFile *input, psDB *db, int chipNum, int cellNum); 52 psArray *psphotFakeSources (); 53 int psphotSaveImage (psMetadata *header, psImage *image, char *filename); 32 54 33 55 // psphotReadout functions 34 psStats *psphotImageStats (pmReadout *readout, psMetadata *config); 35 psPolynomial2D *psphotImageBackground (pmReadout *readout, psMetadata *config, psStats *sky); 56 bool psphotImageMedian (pmConfig *config, pmFPAview *view); 36 57 psArray *psphotFindPeaks (pmReadout *readout, psMetadata *config); 37 58 psArray *psphotSourceStats (pmReadout *readout, psMetadata *config, psArray *allpeaks); 38 59 bool psphotRoughClass (psArray *sources, psMetadata *config); 39 60 bool psphotBasicDeblend (psArray *sources, psMetadata *config); 40 pmPSF *psphotChoosePSF (psMetadata *config, psArray *sources); 41 void psphotOutput (pmReadout *readout, psMetadata *arguments); 42 psImage *psphotImageMedian (pmReadout *readout, psMetadata *config); 43 44 // optional object analysis steps 45 bool psphotEnsemblePSF (pmReadout *readout, psMetadata *config, psArray *sources, pmPSF *psf, bool final); 46 bool psphotBlendFit (pmReadout *readout, psMetadata *config, psArray *sources, pmPSF *psf); 61 pmPSF *psphotChoosePSF (psArray *sources, psMetadata *config); 62 bool psphotEnsemblePSF (pmReadout *readout, psArray *sources, psMetadata *config, pmPSF *psf, bool final); 63 bool psphotBlendFit (pmReadout *readout, psArray *sources, psMetadata *config, pmPSF *psf); 47 64 bool psphotReplaceUnfit (psArray *sources); 48 65 bool psphotApResid (pmReadout *readout, psArray *sources, psMetadata *config, pmPSF *psf); 66 bool psphotMagnitudes (psArray *sources, psMetadata *config, pmPSF *psf); 67 bool psphotSkyReplace (pmConfig *config, pmFPAview *view); 49 68 50 69 // basic support functions … … 54 73 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf); 55 74 void psphotTestArguments (int *argc, char **argv); 56 bool psphotMask Cell (pmCell *cell, psMetadata *recipe);75 bool psphotMaskReadout (pmReadout *readout, psMetadata *recipe); 57 76 bool psphotBackgroundNames (psMetadata *arguments); 58 bool psphotSkyReplace (pmReadout *readout, psImage *background);59 77 60 78 // functions to set the correct source pixels … … 66 84 67 85 // output functions 68 # if (0)69 bool pmSourcesWriteSX (psArray *sources, char *filename);70 bool pmSourcesWriteOBJ (psArray *sources, char *filename);71 bool pmSourcesWriteCMP (psArray *sources, char *filename, psMetadata *header);72 bool pmSourcesWriteCMF (psArray *sources, char *filename, psMetadata *header);73 bool pmSourcesWriteText (psArray *sources, char *filename);74 75 bool pmModelWritePSFs (psArray *sources, char *filename);76 bool pmModelWriteEXTs (psArray *sources, char *filename);77 bool pmModelWriteNULLs (psArray *sources, char *filename);78 bool pmPeaksWriteText (psArray *sources, char *filename);79 bool pmMomentsWriteText (psArray *sources, char *filename);80 81 bool psphotSamplePSFs (pmPSF *psf, psImage *image, char *output);82 86 bool psphotDumpMoments (psMetadata *config, psArray *sources); 83 int psphotSaveImage (psMetadata *header, psImage *image, char *filename);84 87 bool psphotUpdateHeader (psMetadata *header, psMetadata *config); 85 # endif86 87 // void psphotOutputPrep (ppFile *file, ppConfig *config);88 // void psphotOutputCleanup (void);89 90 bool psphotMagnitudes (psMetadata *config, psArray *sources, pmPSF *psf);91 88 92 89 // PSF / DBL / EXT evaluation functions … … 106 103 // XXX these can probably be dropped: 107 104 105 // functions to support simultaneous multi-source fitting 106 bool psphotFitSet (pmSource *oneSrc, pmModel *oneModel, char *fitset, bool PSF); 107 108 # if (0) 109 110 pmHDU *pmHDUFromReadout (pmReadout *readout); 111 bool psRegionIsNaN (psRegion region); 112 bool pmReadoutSetWeights(pmReadout *readout); 113 114 // bicubic interpolation 115 psPolynomial2D *psImageBicubeFit (psImage *image, int x, int y); 116 psPlane psImageBicubeMin (psPolynomial2D *poly); 117 118 bool psImageJpegColormap (char *name); 119 bool psImageJpeg (psImage *image, char *filename, float zero, float scale); 120 121 bool pmSourceFitSet (pmSource *source, psArray *modelSet, const bool PSF); 122 psF32 pmModelFitSet (psVector *deriv, const psVector *params, const psVector *x); 123 bool pmModelFitSetInit (pmModelType type); 124 void pmModelFitSetClear (void); 125 108 126 // optional mode for clip fit? 109 127 psPolynomial4D *psVectorChiClipFitPolynomial4D( … … 119 137 const psVector *t); 120 138 121 // functions to support simultaneous multi-source fitting 122 bool psphotFitSet (pmSource *oneSrc, pmModel *oneModel, char *fitset, bool PSF); 123 bool pmSourceFitSet (pmSource *source, psArray *modelSet, const bool PSF); 124 psF32 pmModelFitSet (psVector *deriv, const psVector *params, const psVector *x); 125 bool pmModelFitSetInit (pmModelType type); 126 void pmModelFitSetClear (void); 139 # endif 127 140 128 // bicubic interpolation 129 psPolynomial2D *psImageBicubeFit (psImage *image, int x, int y);130 psPlane psImageBicubeMin (psPolynomial2D *poly);141 # if (0) 142 bool psphotSamplePSFs (pmPSF *psf, psImage *image, char *output); 143 int psphotSaveImage (psMetadata *header, psImage *image, char *filename); 131 144 132 bool psImageJpegColormap (char *name); 133 bool psImageJpeg (psImage *image, char *filename, float zero, float scale); 145 bool pmSourcesWriteSX (psArray *sources, char *filename); 146 bool pmSourcesWriteOBJ (psArray *sources, char *filename); 147 bool pmSourcesWriteCMP (psArray *sources, char *filename, psMetadata *header); 148 bool pmSourcesWriteCMF (psArray *sources, char *filename, psMetadata *header); 149 bool pmSourcesWriteText (psArray *sources, char *filename); 150 bool pmPeaksWriteText (psArray *sources, char *filename); 134 151 152 bool pmModelWritePSFs (psArray *sources, char *filename); 153 bool pmModelWriteEXTs (psArray *sources, char *filename); 154 bool pmModelWriteNULLs (psArray *sources, char *filename); 155 bool pmMomentsWriteText (psArray *sources, char *filename); 156 # endif 135 157 136 158 // XXX deprecate … … 142 164 // float pmSourceCrossWeight (pmSource *Mi, pmSource *Mj); 143 165 // psArray *pmSourceContour_EAM (psImage *image, int x, int y, float threshold); 166 // psStats *psphotImageStats (pmReadout *readout, psMetadata *config); 167 // psPolynomial2D *psphotImageBackground (pmReadout *readout, psMetadata *config, psStats *sky); 168 // void psphotOutput (pmReadout *readout, psMetadata *arguments); 169 170 // void psphotOutputPrep (ppFile *file, ppConfig *config); 171 // void psphotOutputCleanup (void); 172 173 // bool ppImageLoadPixels (ppFile *input, psDB *db, int chipNum, int cellNum); 174
Note:
See TracChangeset
for help on using the changeset viewer.
