IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2007, 2:17:29 PM (19 years ago)
Author:
Paul Price
Message:

psImageShiftKernel is redundant now, with psImageShift calling psImageInterpolate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageGeomManip.h

    r12741 r12745  
    66 * @author Robert DeSonia, MHPCC
    77 *
    8  * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-04-04 22:42:02 $
     8 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-04-05 00:17:29 $
    1010 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1111 */
     
    9898);
    9999
    100 /** Shift image by an arbitrary number of pixels (dx,dy) in either direction.
    101  *
    102  *  If the shift values are fractional, the output pixel values should
    103  *  interpolate between the input pixel values. The output image has the same
    104  *  dimensions as the input image. Pixels which fall off the edge of the
    105  *  output image are lost. Newly exposed pixels are set to the value given by
    106  *  exposed. This function must be defined for the following types: psU8,
    107  *  psU16, psS8, psS16, psF32, psF64.
    108  *
    109  *  This implementation uses a NxN kernel generated based on the interpolation method
    110  *  the image is first shifted by a fractional amount with the kernel, then
    111  *  shifted in place by an integer amount.
    112  *
    113  *  XXX the integer shift portion is not implemented
    114  *  XXX the exposed pixels are not properly replaced
    115  *  XXX the algorithm can properly handle a mask, but the API does not include
    116  *  it (and it is not implemented)
    117  *
    118  *  @return psImage*     the shifted image result.
    119  */
    120 psImage* psImageShiftKernel(
    121     psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    122     const psImage* input,              ///< input image
    123     float dx,                          ///< the shift in x direction.
    124     float dy,                          ///< the shift in y direction.
    125     psImageInterpolateMode mode        ///< the interpolation mode to use
    126 );
    127 
    128 // XXX should this be global private or local static?
    129 psImage *p_psImageShiftKernel_F32(
    130     psImage *out,
    131     const psImage *input,
    132     const psImage *kernel);
    133 
    134100/** Roll image by an integer number of pixels in either direction.
    135101 *
Note: See TracChangeset for help on using the changeset viewer.