IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2004, 3:10:27 PM (22 years ago)
Author:
desonia
Message:

fixed psImageSlice to match current SDR specifications (image range
specified differently).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageExtraction.h

    r1920 r1924  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-09-28 23:26:48 $
     12*  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-09-29 01:10:27 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    114114/** Extract pixels from rectlinear region to a vector (array of floats).
    115115 *
    116  *  The output vector contains either nx or ny elements, based on the value of
    117  *  the direction: e.g., if direction is PS_CUT_X_POS, there are nx elements.
    118  *  The input region is collapsed in the perpendicular direction, and each
    119  *  element of the output vectors is derived from the statistics of the pixels
    120  *  at that direction coordinate. The statistic used to derive the output
    121  *  vector value is specified by stats. Only one of the statistics choices may
    122  *  be specified, otherwise the function must return an error. This function
    123  *  must be defined for the following types: psS8, psU16, psF32, psF64.
     116 *  The output vector contains either col1-col0 or row1-row0 elements, based
     117 *  on the value of the direction: e.g., if direction is PS_CUT_X_POS, there
     118 *  are col1-col0 elements. The region to be  sliced  is defined by the
     119 *  lower-left corner, (col0,row0), and the upper-right corner, (col1,row1).
     120 *  Note that the row and column of the  upper right-hand corner  are NOT
     121 *  included in the region. In the event that col1 or row1 are negative, they
     122 *  shall be interpreted as being relative to the size of the parent image in
     123 *  that dimension. The input region is collapsed in the direction perpendicular
     124 *  to that specified by direction, and each element of the output vectors is
     125 *  derived from the statistics of the pixels at that direction coordinate. The
     126 *  statistic used to derive the output vector value is specified by stats.
     127 *  If mask is non-NULL, pixels for which the corresponding mask pixel
     128 *  matches maskVal are excluded from operations. If coords is not NULL, the
     129 *  calculated coordinates along the slice are returned in this vector. Only
     130 *  one of the statistics choices may be specified, otherwise the function
     131 *  must return an error.
     132 *
     133 *  This function is defined for the following types: psS8, psU16, psF32, psF64.
    124134 *
    125135 * @return psVector    the resulting vector
     
    134144    const psImage* restrict mask,      ///< the mask for the input image.
    135145    unsigned int maskVal,              ///< the mask value to apply to the mask
    136     unsigned int col,                  ///< the leftmost column of the slice region
    137     unsigned int row,                  ///< the bottommost row of the slice region
    138     unsigned int numCols,              ///< the number of columns in the slice region
    139     unsigned int numRows,              ///< the number of rows in the slice region
     146    int col0,                          ///< the leftmost column of the slice region
     147    int row0,                          ///< the bottommost row of the slice region
     148    int col1,                          ///< exclusive end column of the slice region
     149    int row1,                           ///< exclusive end row of the slice region
    140150    psImageCutDirection direction,     ///< the slice dimension and direction
    141151    const psStats* stats               ///< the statistic to perform in slice operation
Note: See TracChangeset for help on using the changeset viewer.