IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2005, 5:00:41 PM (21 years ago)
Author:
eugene
Message:

updating to work with current psModules

File:
1 edited

Legend:

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

    r5351 r5607  
    22# ifndef PS_LIB_UTILS
    33# define PS_LIB_UTILS
    4 
    5 // XXX EAM : psEllipse needs to be be included in psLib
    6 # include "psEllipse.h"
    74
    85// structure to carry a dynamic string
     
    1310} psLine;
    1411
    15 # define psMemCopy(A)(psMemIncrRefCounter((A)))
    16 
    17 // XXX EAM : my version using varience instead of stdev
    18 bool psMinimizeGaussNewtonDelta_EAM (psVector *delta,
    19                                      const psVector *params,
    20                                      const psVector *paramMask,
    21                                      const psArray  *x,
    22                                      const psVector *y,
    23                                      const psVector *yErr,
    24                                      psMinimizeLMChi2Func func);
    25 
    26 // minimize : using varience vs sigma and parameter limits
    27 psBool       p_psMinLM_GuessABP_EAM (psImage  *Alpha, psVector *Beta, psVector *Params, const psImage  *alpha, const psVector *beta, const psVector *params, const psVector *paramMask, const psVector *beta_lim, const psVector *params_min, const psVector *params_max, psF64 lambda);
    28 psBool       psMinimizeLMChi2_EAM(psMinimization *min, psImage *covar, psVector *params, const psVector *paramMask, const psArray *x, const psVector *y, const psVector *yErr, psMinimizeLMChi2Func func);
    29 psF64        p_psMinLM_dLinear (const psVector *Beta, const psVector *beta, psF64 lambda);
    30 
    31 int          psImageCountPixelMask_EAM (psImage *mask, psU8 value); // added to SDRS
    32 
    33 // psLib extra utilities
    34 # if (0) // added to psLib v8
    35 int          psArgumentGet (int argc, char **argv, char *arg); // added to SDRS
    36 int          psArgumentRemove (int N, int *argc, char **argv); // added to SDRS
    37 bool         psTimerClear (char *name);   // added to SDRS
    38 psVector    *psVectorCreate (double lower, double upper, double delta, psElemType type); // added to SDRS
    39 # endif
    40 
    41 bool         psTimerStart (char *name);   // added to SDRS
    42 psF64        psTimerMark (char *name);    // added to SDRS
    43 void         psTimerFree ();              // added to SDRS (as psTimerStop)
    44 psS32        psLogArguments (int *argc, char **argv);   // added to SDRS (part of psArgumentVerbosity)
    45 psS32        psTraceArguments (int *argc, char **argv); // added to SDRS (part of psArgumentVerbosity)
    46 
    47 // basic image functions
    48 bool         psImageInit (psImage *image,...); // added to SDRS (v.15)
    49 void         psImageSmooth_EAM (psImage *image, float sigma, float Nsigma); // added to SDRS (v.15)
    50 
    5112// psLine functions -- keep out for now?
    5213psLine      *psLineAlloc (int Nline);
     
    5415bool         psLineAdd (psLine *line, char *format, ...);
    5516
    56 // not included in the .h file -- these are fairly lame, keep out?
    57 bool p_psVectorPrint (int fd, psVector *a, char *name);
    58 bool p_psVectorPrintRow (int fd, psVector *a, char *name);
    59 
    60 // polynomial functions -- all in SDRS, not done for v.15
    61 // XXX the pslib 0.7.0 polynomials are *still* nTerm, not nOrder!!!
    62 psPolynomial1D *Polynomial1DAlloc_EAM(psPolynomialType type, psS32 nOrder);
    63 void            Polynomial1DDump_EAM(psPolynomial1D *poly);
    64 psF64           Polynomial1DEval_EAM(const psPolynomial1D* myPoly, psF64 x);
    65 psVector       *Polynomial1DEvalVector_EAM(const psPolynomial1D *myPoly, const psVector *x);
    66 psPolynomial1D *VectorFitPolynomial1D_EAM(psPolynomial1D* myPoly, psVector* mask, psMaskType maskValue, const psVector* y, const psVector* yErr, const psVector* x);
    67 psPolynomial1D *VectorClipFitPolynomial1D_EAM(psPolynomial1D* poly, psStats *stats, psVector* mask, psMaskType maskValue, const psVector* z, const psVector* zErr, const psVector* x);
    68 
    69 psPolynomial2D *Polynomial2DAlloc_EAM(psPolynomialType type, psS32 nXorder, psS32 nYorder);
    70 void            Polynomial2DDump_EAM(psPolynomial2D *poly);
    71 psF64           Polynomial2DEval_EAM(const psPolynomial2D* myPoly, psF64 x, psF64 y);
    72 psVector       *Polynomial2DEvalVector_EAM(const psPolynomial2D *myPoly, const psVector *x,const psVector *y);
    73 psVector       *Polynomial2DEvalVectorD_EAM(const psPolynomial2D *myPoly, const psVector *x,const psVector *y);
    74 psPolynomial2D *VectorFitPolynomial2D_EAM(psPolynomial2D* myPoly, psVector* mask, psMaskType maskValue, const psVector* z, const psVector* zErr, const psVector* x, const psVector* y);
    75 psPolynomial2D *VectorClipFitPolynomial2D_EAM(psPolynomial2D* poly, psStats *stats, psVector* mask, psMaskType maskValue, const psVector* z, const psVector* zErr, const psVector* x, const psVector* y);
    76 
    7717# endif
Note: See TracChangeset for help on using the changeset viewer.