Changeset 6571 for trunk/psphot/src/psphot.h
- Timestamp:
- Mar 11, 2006, 5:27:13 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphot.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r6481 r6571 10 10 # include <pmPSFtry.h> 11 11 # include <pmModelGroup.h> 12 # include "psLibUtils.h"13 # include "psModulesUtils.h"14 # include "psSparse.h"12 // # include "psLibUtils.h" 13 // # include "psModulesUtils.h" 14 // # include "psSparse.h" 15 15 # include "pmFPAConstruct.h" 16 16 # include "pmConcepts.h" … … 21 21 22 22 // top-level psphot functions 23 p pConfig *psphotArguments (int *argc, char **argv);24 ppFile *psphotParseCamera (ppConfig *config);25 bool psphotImageLoop (p pFile *input, ppConfig *config);23 pmConfig *psphotArguments (int *argc, char **argv); 24 bool psphotParseCamera (pmConfig *config); 25 bool psphotImageLoop (pmConfig *config); 26 26 27 27 bool psphotModelTest (pmReadout *readout, psMetadata *arguments, psMetadata *recipe); 28 28 bool psphotReadout (pmReadout *readout, psMetadata *config); 29 bool ppImageLoadPixels (ppFile *input, psDB *db, int chipNum, int cellNum);30 29 void psphotCleanup (void); 30 31 // bool ppImageLoadPixels (ppFile *input, psDB *db, int chipNum, int cellNum); 31 32 32 33 // psphotReadout functions … … 47 48 bool psphotApResid (pmReadout *readout, psArray *sources, psMetadata *config, pmPSF *psf); 48 49 49 // XXX deprecate these?50 // bool psphotFullFit (pmReadout *readout, psMetadata *config, psArray *sources, pmPSF *psf, psStats *sky);51 // bool psphotApplyPSF (pmReadout *readout, psMetadata *config, psArray *sources, pmPSF *psf, psStats *sky);52 // bool psphotFitExtended (pmReadout *readout, psMetadata *config, psArray *sources, psStats *skyStats);53 54 50 // basic support functions 55 pmModel *pmModelCopy (pmModel *model);56 pmModel *pmSourceMagnitudes (pmSource *source, pmPSF *psf, float apRadius);57 float pmSourceCrossProduct (pmSource *Mi, pmSource *Mj);58 float pmSourceCrossWeight (pmSource *Mi, pmSource *Mj);59 psArray *pmSourceContour_EAM (psImage *image, int x, int y, float threshold);60 51 void psphotModelGroupInit (void); 61 52 int psphotSortBySN (const void **a, const void **b); … … 63 54 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf); 64 55 void psphotTestArguments (int *argc, char **argv); 65 bool p mCellSetMask(pmCell *cell, psMetadata *recipe);56 bool psphotMaskCell (pmCell *cell, psMetadata *recipe); 66 57 bool psphotBackgroundNames (psMetadata *arguments); 67 58 bool psphotSkyReplace (pmReadout *readout, psImage *background); … … 73 64 bool psphotInitRadiusEXT (psMetadata *config, pmModelType type); 74 65 bool psphotCheckRadiusEXT (pmReadout *readout, pmSource *source, pmModel *model); 75 bool psphotDefinePixels (pmSource *mySource, const pmReadout *readout, psF32 x, psF32 y, psF32 Radius);76 bool psphotRedefinePixels (pmSource *mySource, const pmReadout *readout, psF32 x, psF32 y, psF32 Radius);77 66 78 67 // output functions 68 # if (0) 79 69 bool pmSourcesWriteSX (psArray *sources, char *filename); 80 70 bool pmSourcesWriteOBJ (psArray *sources, char *filename); … … 93 83 int psphotSaveImage (psMetadata *header, psImage *image, char *filename); 94 84 bool psphotUpdateHeader (psMetadata *header, psMetadata *config); 95 int pmSourcesDophotType (pmSource *source); 96 bool psMetadataItemTransfer (psMetadata *out, psMetadata *in, char *key); 85 # endif 97 86 98 char *psphotSplitName (psMetadata *header); 99 void psphotOutputPrep (ppFile *file, ppConfig *config); 100 void psphotOutputCleanup (void); 101 char *psphotNameSubstitute (char *input, char *replace, char *key); 87 // void psphotOutputPrep (ppFile *file, ppConfig *config); 88 // void psphotOutputCleanup (void); 102 89 103 90 bool psphotMagnitudes (psMetadata *config, psArray *sources, pmPSF *psf); … … 107 94 bool psphotEvalDBL (pmSource *source, pmModel *model); 108 95 bool psphotEvalEXT (pmSource *source, pmModel *model); 109 110 // functions to support simultaneous multi-source fitting111 bool psphotFitSet (pmSource *oneSrc, pmModel *oneModel, char *fitset, bool PSF);112 bool pmSourceFitSet (pmSource *source, psArray *modelSet, const bool PSF);113 psF32 pmModelFitSet (psVector *deriv, const psVector *params, const psVector *x);114 bool pmModelFitSetInit (pmModelType type);115 void pmModelFitSetClear (void);116 96 117 97 // functions to support the source fitting process … … 124 104 psArray *psphotFitDBL (pmReadout *readout, pmSource *source); 125 105 126 // bicubic interpolation 127 psPolynomial2D *psImageBicubeFit (psImage *image, int x, int y); 128 psPlane psImageBicubeMin (psPolynomial2D *poly); 129 130 bool psImageJpegColormap (char *name); 131 bool psImageJpeg (psImage *image, char *filename, float zero, float scale); 106 // XXX these can probably be dropped: 132 107 133 108 // optional mode for clip fit? … … 143 118 const psVector *z, 144 119 const psVector *t); 120 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); 127 128 // bicubic interpolation 129 psPolynomial2D *psImageBicubeFit (psImage *image, int x, int y); 130 psPlane psImageBicubeMin (psPolynomial2D *poly); 131 132 bool psImageJpegColormap (char *name); 133 bool psImageJpeg (psImage *image, char *filename, float zero, float scale); 134 135 136 // XXX deprecate 137 138 // char *psphotNameSubstitute (char *input, char *replace, char *key); 139 // char *psphotSplitName (psMetadata *header); 140 // pmModel *pmSourceMagnitudes (pmSource *source, pmPSF *psf, float apRadius); 141 // float pmSourceCrossProduct (pmSource *Mi, pmSource *Mj); 142 // float pmSourceCrossWeight (pmSource *Mi, pmSource *Mj); 143 // psArray *pmSourceContour_EAM (psImage *image, int x, int y, float threshold);
Note:
See TracChangeset
for help on using the changeset viewer.
