IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2004, 8:30:57 AM (22 years ago)
Author:
desonia
Message:

added initial/untested version of psImageConvolution.

File:
1 edited

Legend:

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

    r1653 r1863  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-08-28 01:18:28 $
     9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-09-23 18:30:57 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1313 */
    1414
    15 #ifndef PS_IMAGE_FFT_H
    16 #define PS_IMAGE_FFT_H
     15#ifndef PS_IMAGE_CONVOLVE_H
     16#define PS_IMAGE_CONVOLVE_H
    1717
    1818#include<stdbool.h>
     
    2020#include "psImage.h"
    2121#include "psVector.h"
     22#include "psType.h"
     23
     24#define PS_TYPE_KERNEL PS_TYPE_F32     /**< the data member to use for kernel image */
     25#define PS_TYPE_KERNEL_DATA F32        /**< the data member to use for kernel image */
     26#define PS_TYPE_KERNEL_NAME "psF32"    /**< the data type for kernel as a string */
     27
     28typedef psF32 psKernelType;
    2229
    2330/** A convolution kernel */
    2431typedef struct
    2532{
     33    psImage* image;                    ///< Kernel data, in the form of an image
    2634    int xMin;                          ///< Most negative x index
    2735    int yMin;                          ///< Most negative y index
    2836    int xMax;                          ///< Most positive x index
    2937    int yMax;                          ///< Most positive y index
    30     psF32** kernel;                    ///< Pointer to the kernel data
    31     psF32** p_kernelRows;              ///< Pointer to the rows of the kernel data
    32     psImage* p_data;                   ///< Kernel data, in the form of an image
     38    psKernelType** kernel;             ///< Pointer to the kernel data
     39    psKernelType** p_kernelRows;       ///< Pointer to the rows of the kernel data; not intended for user use.
    3340}
    3441psKernel;
     
    6269psKernel* psKernelAlloc(
    6370    int xMin,                          ///< Most negative x index
    64     int xMax,                          ///< Most negative y index
    65     int yMin,                          ///< Most positive x index
     71    int xMax,                          ///< Most positive x index
     72    int yMin,                          ///< Most negative y index
    6673    int yMax                           ///< Most positive y index
    6774);
     
    8491 */
    8592psKernel* psKernelGenerate(
    86     const psVector* xShifts,           ///< list of shifts relative to a reference point
    87     const psVector* yShifts            ///< list of shifts relative to a reference point
     93    const psVector* tShifts,           ///< list of time shifts
     94    const psVector* xShifts,           ///< list of x-axis shifts
     95    const psVector* yShifts,           ///< list of y-axis shifts
     96    bool relative
    8897);
    8998
Note: See TracChangeset for help on using the changeset viewer.