IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 26, 2004, 1:46:39 PM (22 years ago)
Author:
Paul Price
Message:

Updated psImageCut to exclude the width of the cut: just want a cut
through the data: no need to integrate perpendicular to the cut.

File:
1 edited

Legend:

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

    r1632 r1633  
    1 %%% $Id: psLibSDRS.tex,v 1.86 2004-08-26 21:43:50 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.87 2004-08-26 23:46:13 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    23412341\begin{verbatim}
    23422342typedef enum {
    2343     PS_CUT_X_POS,
    2344     PS_CUT_X_NEG,
    2345     PS_CUT_Y_POS,
    2346     PS_CUT_Y_NEG
     2343    PS_CUT_X_POS,                     ///< Cut in positive x direction
     2344    PS_CUT_X_NEG,                     ///< Cut in negative x direction
     2345    PS_CUT_Y_POS,                     ///< Cut in positive y direction
     2346    PS_CUT_Y_NEG                      ///< Cut in negative y direction
    23472347} psImageCutDirection;
    23482348
    2349 psVector *psImageSlice(psVector *out, 
     2349psVector *psImageSlice(psVector *out,
    23502350                       psVector *coords,
    2351                        const psImage *input, 
    2352                        const psImage *mask, 
     2351                       const psImage *input,
     2352                       const psImage *mask,
    23532353                       unsigned int maskVal,
    2354                        unsigned int x, 
    2355                        unsigned int y,
    2356                        unsigned int nx,
    2357                        unsigned int ny,
    2358                        psImageCutDirection direction, 
    2359                        const psStats *stats);
     2354                       unsigned int x,
     2355                       unsigned int y,
     2356                       unsigned int nx,
     2357                       unsigned int ny,
     2358                       psImageCutDirection direction,
     2359                       const psStats *stats);
    23602360\end{verbatim}
    23612361Extract pixels from rectlinear region to a vector (array of floats).
     
    23752375\begin{verbatim}
    23762376psVector *psImageCut(psVector *out, const psImage *input,
    2377                      const psImage *mask,
    2378                      unsigned int maskVal,
     2377                     const psImage *mask, unsigned int maskVal,
    23792378                     float xs, float ys, float xe, float ye,
    2380                      float dw, const psStats *stats);
    2381 \end{verbatim}
    2382 Extract pixels from an image along a line to a vector (array of
    2383 floats).  The vector \code{(xs,ys)} - \code{(xe,ye)} forms the basis
    2384 of the output vector.  Pixels are considered in a rectangular region
    2385 of width \code{dw} about this vector.  The input region is collapsed
    2386 in the perpendicular direction, and each element of the output vector
    2387 represents pixel-sized boxes, where the value is derived from the
    2388 statistics of the pixels interpolated along the perpendicular
    2389 direction.  The specific algorithm which must be used is described in
    2390 the PSLib ADD (PSDC-430-006).  The statistic used to derive the output
    2391 vector value is specified by \code{stats}.  Only one of the statistics
    2392 choices may be specified, otherwise the function must return an error.
    2393 The \code{mask} and \code{maskVal} entries are passed to the psLib
    2394 statistics function used to calculate the ensemble statistics.  This
    2395 function must be defined for the following types: \code{psS8},
    2396 \code{psU16}, \code{psF32}, \code{psF64}
     2379                     unsigned int nSamples, psImageInterpolateMode mode);
     2380\end{verbatim}
     2381Extract pixels along a line segment, \code{(xs,ys)} to \code{(xe,ye)},
     2382on the image to a vector (array of the appropriate data type).  The
     2383line segment is sampled \code{nSamples} times, hence the output vector
     2384contains \code{nSamples} elements.  The interpolation method used to
     2385derive the output vector value at each sample along the line segment
     2386is specified by \code{mode}.  If the \code{mask} is non-\code{NULL},
     2387then pixels for which the corresponding mask value is \code{maskVal}
     2388are not included in the interpolation.  This function must be defined
     2389for the following types: \code{psS8}, \code{psU16}, \code{psF32},
     2390\code{psF64}.
    23972391
    23982392\begin{verbatim}
Note: See TracChangeset for help on using the changeset viewer.