IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 10, 2005, 4:29:39 PM (21 years ago)
Author:
desonia
Message:

tweaks

File:
1 edited

Legend:

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

    r3737 r3880  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-04-21 21:18:23 $
     12 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-05-11 02:29:39 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2121#include "psCoord.h"
    2222#include "psStats.h"
     23#include "psPixels.h"
    2324
    2425/// @addtogroup Image
     
    183184/** Transform the input image according the supplied transformation.
    184185 *
    185  *  Transform the input image according the supplied transformation. In the
    186  *  event that the output is NULL, the smallest possible image capable of
    187  *  containing the entire transformed input image is to be returned; otherwise
    188  *  only the image size specified in the output image is to be used. If the
    189  *  inputMask is not NULL, those pixels in the inputMask matching inputMaskVal
     186 *  Transform the input image according the supplied transformation. The size
     187 *  of the transformed image is defined by the supplied output image, if
     188 *  non-NULL, or the region otherwise (size region.x1 - region.x0 by region.y1
     189 *  region.y0, with out->x0 = region.x0 and out->y0 = region.y0). If the
     190 *  inputMask is non-NULL, those pixels in the inputMask matching inputMaskVal
    190191 *  are to be ignored in the transformation. The inputMask must be of type
    191192 *  psU8, and of the same size as the input, otherwise the function shall
    192  *  generate an error and return NULL. The transformation outToIn specifies
    193  *  the coordinates in the input image of a pixel in the output image - note
    194  *  that this is the reverse of what might be naively expected, but it is what
    195  *  is required in order to use psImagePixelInterpolate. If combineMask is not
    196  *  NULL, then those pixels that match combineMaskVal are not transformed.
    197  *  combineMask must be of type psU8 and of the same size as the output,
    198  *  otherwise the function shall generate an error and return NULL. This
    199  *  function must be capable of handling the following types for the input
    200  *  (with corresponding types for the output): psF32, psF64.
     193 *  generate an error and return NULL. The transformation outToIn specifies the
     194 *  coordinates in the input image of a pixel in the output image — note that
     195 *  this is the reverse of what might be naively expected, but it is what is
     196 *  required in order to use psImagePixelInterpolate. If the pixels array is
     197 *  non-NULL, it shall consist of psPixelCoords, and only those pixels in the
     198 *  output image shall be transformed; otherwise, the entire image is
     199 *  generated. The interpolation is performed using the specified interpolation
     200 *  mode. Where a pixel in the output image does not correspond to a pixel in
     201 *  the input image (or all appropriate pixels in the input image are
     202 *  masked), the value shall be set to exposed, and the pixel added to the
     203 *  appropriate list of pixels (psPixels) in the array of blankPixels for
     204 *  return to the user. This function must be capable of handling the following
     205 *  types for the input (with corresponding types for the output): psF32, psF64.
     206 
    201207 *
    202208 *  @return psImage*    The transformed image.
     
    204210psImage* psImageTransform(
    205211    psImage *output,                   ///< psImage to recycle, or NULL
     212    psArray** blankPixels,             ///<
    206213    const psImage *input,              ///< psImage to apply transform to
    207214    const psImage *inputMask,          ///< if not NULL, mask of input psImage
    208215    int inputMaskVal,                  ///< masking value for inputMask
    209216    const psPlaneTransform *outToIn,   ///< the transform to apply
    210     const psImage *combineMask,        ///< if not NULL, mask of pixels not to be transformed
    211     int combineMaskVal                 ///< masking value for combineMask
     217    const psRegion region,             ///<
     218    const psPixels* pixels,            ///<
     219    psImageInterpolateMode mode,       ///<
     220    int exposedValue                   ///<
    212221);
    213222
Note: See TracChangeset for help on using the changeset viewer.