IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 3, 2005, 11:58:53 AM (22 years ago)
Author:
desonia
Message:

made psImageRotate take radian rotation value instead of degrees.

File:
1 edited

Legend:

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

    r2375 r2860  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-11-16 20:00:21 $
     13 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-01-03 21:58:53 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4444 *  All pixels outside of the rectangular region in complex space formed by
    4545 *  the min and max input parameters are set to the value vmax (if either
    46  *  the real or imaginary portion exceeds the respective max values), or vmin. 
     46 *  the real or imaginary portion exceeds the respective max values), or vmin.
    4747 *  This function is defined for psC32, and psC64 imagery only.
    4848 *
     
    9393 *  1/scale.  The scale, always a positive number, is equal in each dimension and
    9494 *  specified the number of pixels used to define a new pixel in the output image.
    95  *  The output image is generated from all input image pixels. This function is 
     95 *  The output image is generated from all input image pixels. This function is
    9696 *  defined for psU8, psS8, psS16, psF32, psF64, psC32, and psC64.
    9797 *
     
    110110/** Resample image to new scale.
    111111 *
    112  *  A new image is constructed in which the dimensions are increased by a 
    113  *  factor of scale. The scale, always a positive number, is equal in each 
    114  *  dimension. The output image is generated from all input image pixels. 
    115  *  Each pixel in the output image is derived by interpolating between 
     112 *  A new image is constructed in which the dimensions are increased by a
     113 *  factor of scale. The scale, always a positive number, is equal in each
     114 *  dimension. The output image is generated from all input image pixels.
     115 *  Each pixel in the output image is derived by interpolating between
    116116 *  neighboring pixels using the specified interpolation method (mode).
    117117 *
     
    127127/** Rotate the input image by given angle, specified in degrees.
    128128 *
    129  *  The output image must contain all of the pixels from the input image in 
    130  *  their new frame. Pixels in the output image which do not map to input 
    131  *  pixels should be set to exposed. The center of rotation is always the 
    132  *  center pixel of the image. The rotation is specified in the sense that a 
    133  *  positive angle is an anti-clockwise rotation. This function must be 
    134  *  defined for the following types: psU8, psU16, psS8, psS16, psF32, psF64, 
     129 *  The output image must contain all of the pixels from the input image in
     130 *  their new frame. Pixels in the output image which do not map to input
     131 *  pixels should be set to exposed. The center of rotation is always the
     132 *  center pixel of the image. The rotation is specified in the sense that a
     133 *  positive angle is an anti-clockwise rotation. This function must be
     134 *  defined for the following types: psU8, psU16, psS8, psS16, psF32, psF64,
    135135 *  psC32, psC64.
    136136 *
     
    140140    psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    141141    const psImage* in,                 ///< input image
    142     float angle,                       ///< the rotation angle in degrees.
     142    float angle,                       ///< the rotation angle in radians.
    143143    psC64 unexposedValue,              ///< the output image pixel values for non-imagery areas
    144144    psImageInterpolateMode mode        ///< the interpolation mode used
     
    147147/** Shift image by an arbitrary number of pixels (dx,dy) in either direction.
    148148 *
    149  *  If the shift values are fractional, the output pixel values should 
    150  *  interpolate between the input pixel values. The output image has the same 
    151  *  dimensions as the input image. Pixels which fall off the edge of the 
    152  *  output image are lost. Newly exposed pixels are set to the value given by 
    153  *  exposed. This function must be defined for the following types: psU8, 
     149 *  If the shift values are fractional, the output pixel values should
     150 *  interpolate between the input pixel values. The output image has the same
     151 *  dimensions as the input image. Pixels which fall off the edge of the
     152 *  output image are lost. Newly exposed pixels are set to the value given by
     153 *  exposed. This function must be defined for the following types: psU8,
    154154 *  psU16, psS8, psS16, psF32, psF64, psC32, psC64.
    155155 *
     
    166166
    167167/** Roll image by an integer number of pixels in either direction.
    168  * 
     168 *
    169169 *  The output image is the same dimensions as the input image.  Edge pixels
    170  *  wrap to the other side (no values are lost).  This function is 
     170 *  wrap to the other side (no values are lost).  This function is
    171171 *  defined for psU8, psS8, psS16, psF32, psF64, psC32, and psC64.
    172172 *
Note: See TracChangeset for help on using the changeset viewer.