iWaveOcean
3ds Max ocean simulation plugin
Convolution< radius, behavior > Class Template Reference

#include <Convolution.h>

Inheritance diagram for Convolution< radius, behavior >:
IConvolution< radius >

Public Member Functions

 Convolution (float kernel[kernel_width][kernel_width])
 
void Convolve (float *in, float *out, int rows, int cols) const
 

Detailed Description

template<int radius, ConvolutionEdgeBehavior behavior>
class Convolution< radius, behavior >

Convolution of a specified kernel onto an input matrix, with customizable edge behavior.

Template Parameters
radiusthe radius of the kernel; the kernel will be of size (2P+1) by (2P+1)
behaviora ConvolutionEdgeBehavior that specifies how the kernel handles boundary conditions

Member Function Documentation

template<int radius, ConvolutionEdgeBehavior behavior>
void Convolution< radius, behavior >::Convolve ( float *  in,
float *  out,
int  rows,
int  cols 
) const
inlinevirtual

Performs a convolution on an input matrix and stores it in an output matrix.

Parameters
inthe input matrix
outthe output matrix (must be same dimensions as the input matrix)
rowsthe number of rows in each matrix
colsthe number of columns in each matrix

Implements IConvolution< radius >.


The documentation for this class was generated from the following file: