IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4316 for trunk/psLib/src/image


Ignore:
Timestamp:
Jun 17, 2005, 5:13:02 PM (21 years ago)
Author:
drobbin
Message:

* empty log message *

Location:
trunk/psLib/src/image
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImage.c

    r4315 r4316  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-06-18 02:30:49 $
     11 *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-06-18 03:13:02 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    329329
    330330
    331 psS32 psImageFreeChildren(psImage* image)
     331int psImageFreeChildren(psImage* image)
    332332{
    333333    psS32 numFreed = 0;
  • trunk/psLib/src/image/psImage.h

    r4315 r4316  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-06-18 02:30:49 $
     13 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-06-18 03:13:02 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    166166 *
    167167 */
    168 psS32 psImageFreeChildren(
     168int psImageFreeChildren(
    169169    psImage* image                     ///< psImage in which all children shall be deallocated
    170170);
  • trunk/psLib/src/image/psImageConvolve.c

    r4315 r4316  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-06-18 02:30:49 $
     7 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-06-18 03:13:02 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727static void freeKernel(psKernel* ptr);
    2828
    29 psKernel* psKernelAlloc(psS32 xMin, psS32 xMax, psS32 yMin, psS32 yMax)
     29psKernel* psKernelAlloc(int xMin, int xMax, int yMin, int yMax)
    3030{
    3131    psKernel* result;
     
    9090                           const psVector* xShifts,
    9191                           const psVector* yShifts,
    92                            psBool relative)
     92                           bool relative)
    9393{
    9494    psS32 lastX;
  • trunk/psLib/src/image/psImageConvolve.h

    r4315 r4316  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-18 02:30:49 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7171 */
    7272psKernel* psKernelAlloc(
    73     psS32 xMin,                          ///< Most negative x index
    74     psS32 xMax,                          ///< Most positive x index
    75     psS32 yMin,                          ///< Most negative y index
    76     psS32 yMax                           ///< Most positive y index
     73    int xMin,                          ///< Most negative x index
     74    int xMax,                          ///< Most positive x index
     75    int yMin,                          ///< Most negative y index
     76    int yMax                           ///< Most positive y index
    7777);
    7878
     
    9797    const psVector* xShifts,           ///< list of x-axis shifts
    9898    const psVector* yShifts,           ///< list of y-axis shifts
    99     psBool relative
     99    bool relative
    100100    /**< specifies the starting point for the shifts; true=relative to previous shift
    101101     *  false = relative to some other starting point.  */
  • trunk/psLib/src/image/psImageFFT.c

    r4193 r4316  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-06-09 21:17:45 $
     7 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-06-18 03:13:02 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727static psBool p_fftwWisdomImported = false;
    2828
    29 psImage* psImageFFT(psImage* out, const psImage* in, psFFTFlags direction)
     29psImage* psImageFFT(psImage* out, const psImage* image, psFFTFlags direction)
    3030{
    3131    psU32 numCols;
     
    3535
    3636    /* got good image data? */
    37     if (in == NULL) {
     37    if (image == NULL) {
    3838        psFree(out);
    3939        return NULL;
     
    6060    }
    6161
    62     type = in->type.type;
     62    type = image->type.type;
    6363
    6464    /* make sure the system-level wisdom information is imported. */
     
    6868    }
    6969
    70     numRows = in->numRows;
    71     numCols = in->numCols;
     70    numRows = image->numRows;
     71    numCols = image->numCols;
    7272
    7373    // n.b. FFTW can perform a in-place transform at the same rate or faster than out-of-place.
     
    7575
    7676    fftwf_complex* outBuffer = fftwf_malloc(numRows*numCols*sizeof(fftwf_complex));
    77     p_psImageCopyToRawBuffer(outBuffer, in, PS_TYPE_C32);
     77    p_psImageCopyToRawBuffer(outBuffer, image, PS_TYPE_C32);
    7878
    7979    plan = fftwf_plan_dft_2d(numRows, numCols,
  • trunk/psLib/src/image/psImageFFT.h

    r4162 r4316  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-08 23:40:45 $
     9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3333psImage* psImageFFT(
    3434    psImage* out,                      ///< a psImage to recycle.  If NULL, a new psImage is made.
    35     const psImage* in,                 ///< the psImage to apply transform to
     35    const psImage* image,                 ///< the psImage to apply transform to
    3636    psFFTFlags direction               ///< the direction of the transform
    3737);
  • trunk/psLib/src/image/psImageGeomManip.c

    r4308 r4316  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-17 23:44:21 $
     12 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-06-18 03:13:02 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    174174psImage* psImageResample(psImage* out,
    175175                         const psImage* in,
    176                          psS32 scale,
     176                         int scale,
    177177                         psImageInterpolateMode mode)
    178178{
     
    251251
    252252psImage* psImageRoll(psImage* out,
    253                      const psImage* in,
    254                      psS32 dx,
    255                      psS32 dy)
     253                     const psImage* input,
     254                     int dx,
     255                     int dy)
    256256{
    257257    psS32 outRows;
     
    259259    psS32 elementSize;
    260260
    261     if (in == NULL) {
     261    if (input == NULL) {
    262262        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    263263                PS_ERRORTEXT_psImage_IMAGE_NULL);
     
    267267    // create an output image of the same size
    268268    // and type
    269     outRows = in->numRows;
    270     outCols = in->numCols;
    271     elementSize = PSELEMTYPE_SIZEOF(in->type.type);
    272     out = psImageRecycle(out, outCols, outRows, in->type.type);
     269    outRows = input->numRows;
     270    outCols = input->numCols;
     271    elementSize = PSELEMTYPE_SIZEOF(input->type.type);
     272    out = psImageRecycle(out, outCols, outRows, input->type.type);
    273273
    274274    // make dx and dy between 0 and outCols or
     
    292292            inRowNumber -= outRows;
    293293        }
    294         psU8* inRow = in->data.U8[inRowNumber]; // use byte arithmetic for all types
     294        psU8* inRow = input->data.U8[inRowNumber]; // use byte arithmetic for all types
    295295        psU8* outRow = out->data.U8[row];
    296296
  • trunk/psLib/src/image/psImageGeomManip.h

    r4287 r4316  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-06-16 22:07:41 $
     10 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-06-18 03:13:02 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5757    psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    5858    const psImage* in,                 ///< input image
    59     psS32 scale,                       ///< resample scaling factor
     59    int scale,                       ///< resample scaling factor
    6060    psImageInterpolateMode mode        ///< the interpolation mode used in resampling
    6161);
     
    111111psImage* psImageRoll(
    112112    psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    113     const psImage* in,                 ///< input image
    114     psS32 dx,                          ///< number of pixels to roll in the x-dimension
    115     psS32 dy                           ///< number of pixels to roll in the y-dimension
     113    const psImage* input,              ///< input image
     114    int dx,                            ///< number of pixels to roll in the x-dimension
     115    int dy                             ///< number of pixels to roll in the y-dimension
    116116);
    117117
     
    151151    const psRegion region,             ///< the size of the transformed image
    152152    const psPixels* pixels,            /**< if not NULL, consists of psPixelCoords and specifies which pixels in
    153                                                  *  output image shall be transformed; otherwise, entire image generated*/
     153                                                     *  output image shall be transformed; otherwise, entire image generated*/
    154154    psImageInterpolateMode mode,       ///< the interpolation scheme to be used
    155155    int exposedValue                   ///< Exposed value to which non-corresponding pixels are set
Note: See TracChangeset for help on using the changeset viewer.