IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4596


Ignore:
Timestamp:
Jul 22, 2005, 12:13:36 PM (21 years ago)
Author:
Paul Price
Message:

Removed F32 from polynomials --- only use double precision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r4595 r4596  
    1 %%% $Id: psLibSDRS.tex,v 1.319 2005-07-22 22:09:32 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.320 2005-07-22 22:13:36 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    42894289typedef struct {
    42904290    psPolynomialType type;              ///< Polynomial type
    4291     psElemType ctype;                   ///< Polynomial precision
    42924291    unsigned int n;                     ///< Number of terms
    4293     union {
    4294       psF32 *F32;                       ///< Coefficients
    4295       psF64 *F64;                       ///< Coefficients
    4296     } coeff;
    4297     union {
    4298       psF32 *F32;                       ///< Error in coefficients
    4299       psF64 *F64;                       ///< Error in coefficients
    4300     } coeffErr;
     4292    psF64 *coeff;                       ///< Coefficients
     4293    psF64 *coeffErr;                    ///< Error in coefficients
    43014294    char *mask;                         ///< Coefficient mask
    43024295} psPolynomial1D;
     
    43074300typedef struct {
    43084301    psPolynomialType type;              ///< Polynomial type
    4309     psElemType ctype;                   ///< Polynomial precision
    43104302    unsigned int nX, nY;                ///< Number of terms in x and y
    4311     union {
    4312       psF32 **F32;                      ///< Coefficients
    4313       psF64 **F64;                      ///< Coefficients
    4314     } coeff;
    4315     union {
    4316       psF32 **F32;                      ///< Error in coefficients
    4317       psF64 **F64;                      ///< Error in coefficients
    4318     } coeffErr;
     4303    psF64 *coeff;                       ///< Coefficients
     4304    psF64 *coeffErr;                    ///< Error in coefficients
    43194305    char **mask;                        ///< Coefficients mask
    43204306} psPolynomial2D;
     
    43324318\end{datatype}
    43334319
    4334 The element \code{ctype} defines the data type for the coefficients
    4335 (allowed values of \code{PS_TYPE_F32} and \code{PS_TYPE_F64}).
    4336 
    43374320The constructors are:
    43384321\begin{prototype}
    43394322psPolynomial1D *psPolynomial1DAlloc(psPolynomialType type,
    4340                                     psElemType ctype,
    43414323                                    unsigned int nX);
    43424324psPolynomial2D *psPolynomial2DAlloc(psPolynomialType type,
    4343                                     psElemType ctype,
    43444325                                    unsigned int nX, unsigned int nY);
    43454326psPolynomial3D *psPolynomial3DAlloc(psPolynomialType type,
    4346                                     psElemType ctype,
    43474327                                    unsigned int nX, unsigned int nY, unsigned int nZ);
    43484328psPolynomial4D *psPolynomial4DAlloc(psPolynomialType type,
    4349                                     psElemType ctype,
    43504329                                    unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT);
    43514330\end{prototype}
     
    61226101\begin{datatype}
    61236102typedef struct {
    6124     psDPolynomial2D *x;
    6125     psDPolynomial2D *y;
     6103    psPolynomial2D *x;
     6104    psPolynomial2D *y;
    61266105} psPlaneTransform;
    61276106\end{datatype}
    61286107
    6129 The \code{psDPolynomial2D} structures represent polynomials of
     6108The \code{psPolynomial2D} structures represent polynomials of
    61306109arbitrary order as a function of two dimensions.  There is one of
    61316110these structures for each of the two output dimensions.  As an
     
    61496128\begin{datatype}
    61506129typedef struct {
    6151     psDPolynomial4D *x;
    6152     psDPolynomial4D *y;
     6130    psPolynomial4D *x;
     6131    psPolynomial4D *y;
    61536132} psPlaneDistort;
    61546133\end{datatype}
    61556134
    61566135Like \code{psPlaneTransform}, \code{psPlaneDistort} contains two
    6157 \code{psDPolynomial4D} structures representing polynomials of
     6136\code{psPolynomial4D} structures representing polynomials of
    61586137arbitrary order as a function of four, rather than two dimensions.
    61596138There is one of these structures for each of the two output
Note: See TracChangeset for help on using the changeset viewer.