psPolynomialUtils.h

Go to the documentation of this file.
00001 /* @file  psPolynomialUtils.h
00002  * @brief extra psPolynomial-related functions
00003  *
00004  * $Revision: 1.5 $ $Name:  $
00005  * $Date: 2007/01/23 22:47:23 $
00006  * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
00007  */
00008 
00009 #ifndef PS_POLYNOMIAL_UTILS_H
00010 #define PS_POLYNOMIAL_UTILS_H
00011 
00012 /// @addtogroup MathOps Mathematical Operations
00013 /// @{
00014 
00015 #include "psVector.h"
00016 #include "psImage.h"
00017 #include "psCoord.h"
00018 #include "psStats.h"
00019 #include "psPolynomial.h"
00020 
00021 // perform vector clip-fit based on significance of deviations
00022 bool psVectorChiClipFitPolynomial4D(
00023     psPolynomial4D *poly,               // Polynomial to fit
00024     psStats *stats,                     // Statistics to use in clipping
00025     const psVector *mask,               // Mask for input values
00026     psMaskType maskValue,               // Mask value
00027     const psVector *f,                  // Value of the function, f(x,y,z,t)
00028     const psVector *fErr,               // Error in the value
00029     const psVector *x,                  // x ordinate
00030     const psVector *y,                  // y ordinate
00031     const psVector *z,                  // z ordinate
00032     const psVector *t                   // t ordinate
00033 );
00034 
00035 // fit a 2D 2nd order polynomial to the 9 pixels centered on (x,y)
00036 psPolynomial2D *psImageBicubeFit(const psImage *image, // Image to fit
00037                                  int x, int y // Pixels of centre of fit
00038                                 );
00039 
00040 // detemine the min(max) of the special 2D 2nd order polynomial
00041 psPlane psImageBicubeMin(const psPolynomial2D *poly // The polynomial
00042                         );
00043 psPolynomial2D *psPolynomial2D_dX (psPolynomial2D *out, psPolynomial2D *poly);
00044 psPolynomial2D *psPolynomial2D_dY (psPolynomial2D *out, psPolynomial2D *poly);
00045 
00046 /// @}
00047 #endif /* PS_POLY_UTILS_H */

Generated on Fri Feb 2 22:24:35 2007 for pslib by  doxygen 1.5.1