IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3946


Ignore:
Timestamp:
May 16, 2005, 11:04:30 AM (21 years ago)
Author:
Paul Price
Message:

Specify that col0,row0 be preserved when using psImageCopy.

File:
1 edited

Legend:

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

    r3934 r3946  
    1 %%% $Id: psLibSDRS.tex,v 1.218 2005-05-13 23:31:59 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.219 2005-05-16 21:04:30 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    14281428    psType type;                        ///< image data type and dimension
    14291429    const int ncols, nrows;             ///< size of image
    1430     const int x0, y0;                   ///< data region relative to parent
     1430    int col0, row0;                     ///< offset of image (relative to parent)
    14311431    union {
    14321432        psS8  **S8;                     ///< Pointers to char data
     
    14581458the image is considered to be the child of that parent array.  The
    14591459offset of the \code{(0,0)} pixel in this array relative to the parent
    1460 array is given by the elements \code{(x0,y0)}: \code{x0} is the
    1461 starting column number in the parent image while \code{y0} is the
     1460array is given by the elements \code{(col0,row0)}: \code{col0} is the
     1461starting column number in the parent image while \code{row0} is the
    14621462starting row number.  The structure may include references to
    14631463subrasters (\code{children, nChildren}) and/or to a containing array
     
    19501950functions:
    19511951\begin{verbatim}
    1952 psF64 psLookupTableInterpolate(const psLookupTable *table, psF64 index, int column);
    1953 psVector *psLookupTableInterpolateAll(const psLookupTable *table, psF64 index);
     1952psF64 psLookupTableInterpolate(const psLookupTable *table, psF64 index, int column, psLookupStatusType *status);
     1953psVector *psLookupTableInterpolateAll(const psLookupTable *table, psF64 index, psVector *stats);
    19541954\end{verbatim}
    19551955Both functions shall interpolate the \code{table} at the provided
     
    19581958\code{psLookupTableInterpolateAll}, all the values shall be calculated
    19591959and returned as a \code{psVector}, the type of which shall be
    1960 \code{PS_TYPE_F64}.  If the \code{index} is beyond the range of the
    1961 \code{table}, \code{psLookupTableInterpolate} shall return \code{NaN},
    1962 and \code{psLookupTableInterpolateAll} shall return \code{NULL} ---
    1963 that is, no attempt is made at extrapolation.
     1960\code{PS_TYPE_F64}.
     1961
     1962If the \code{index} is beyond the range of the \code{table},
     1963\code{psLookupTableInterpolate} shall return \code{NaN}, and
     1964\code{psLookupTableInterpolateAll} shall return \code{NULL} --- that
     1965is, no attempt is made at extrapolation.
    19641966
    19651967%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
    26332635
    26342636\begin{verbatim}
    2635 psPolynomial1D *psVectorFitPolynomial1D(psPolynomial1D *myPoly,
    2636                                         const psVector *x,
    2637                                         const psVector *y,
     2637psPolynomial1D *psVectorFitPolynomial1D(psPolynomial1D *myPoly, const psVector *x, const psVector *y,
    26382638                                        const psVector *yErr);
    26392639\end{verbatim}
     
    26492649
    26502650\begin{verbatim}
    2651 psSpline1D *psVectorFitSpline1D(const psVector *x,
    2652                                 const psVector *y
    2653                                 int nKnots);
     2651psSpline1D *psVectorFitSpline1D(const psVector *x, const psVector *y, int nKnots);
    26542652\end{verbatim}
    26552653\code{psVectorFitSpline1D} shall return the spline that best fits the
     
    27332731result in the specified structure.  The output image data must be
    27342732allocated as a single, contiguous block of memory.  The output image
    2735 may not be the input image.  This function must be defined for the
     2733may not be the input image.  The \code{col0,row0} of the \code{input}
     2734image shall be preserved.  This function must be defined for the
    27362735following types: \code{psU8}, \code{psU16}, \code{psS8}, \code{psS16},
    27372736\code{psF32}, \code{psF64}, \code{psC32}, \code{psC64}.
     
    33703369types \code{psF32, psF64}.  Input and output data types should match.
    33713370\begin{verbatim}
    3372 psVector *psMatrixEigenvectors(psImage *in);
    3373 \end{verbatim}
     3371psImage *psMatrixEigenvectors(psImage *out, psImage *in);
     3372\end{verbatim}
     3373\tbd{Should this return an array of vectors?  Specified here as
     3374currently implemented by MHPCC.}
    33743375
    33753376Finally, we specify two functions to convert between matrices and
     
    37793780    PS_META_LIST = 0x10000,            ///< List data (Stored as item.data.list).
    37803781    PS_META_STR,                       ///< String data (Stored as item.data.V).
     3782    PS_META_META,                      ///< Metadata (Stored as item.data.md).
    37813783    PS_META_VEC,                       ///< Vector data (Stored as item.data.V).
    37823784    PS_META_IMG,                       ///< Image data (Stored as item.data.V).
Note: See TracChangeset for help on using the changeset viewer.