Inheritance diagram for Loonim.ConvolveFilter:
Loonim.GaussianFilter Loonim.UnsharpFilter

Public Member Functions

 ConvolveFilter ()
 Construct a filter with a null kernel. This is only useful if you're going to change the kernel later on. More...
 
 ConvolveFilter (float[] matrix)
 Construct a filter with the given 3x3 kernel. More...
 
 ConvolveFilter (int rows, int cols, float[] matrix)
 Construct a filter with the given 3x3 kernel. More...
 
 ConvolveFilter (Kernel kernel)
 Construct a filter with the given 3x3 kernel. More...
 
virtual void Filter (int width, int height, Color[] src, Color[] target)
 

Static Public Member Functions

static void Convolve (Kernel kernel, Color[] inPixels, Color[] outPixels, int width, int height, ConvolveWrapping edgeAction)
 Convolve with a 2D kernel More...
 
static void Convolve (Kernel kernel, Color[] inPixels, Color[] outPixels, int width, int height, bool alpha, ConvolveWrapping edgeAction)
 Convolve with a 2D kernel More...
 
static void ConvolveHV (Kernel kernel, Color[] inPixels, Color[] outPixels, int width, int height, bool alpha, ConvolveWrapping edgeAction)
 Convolve with a 2D kernel More...
 
static void ConvolveH (Kernel kernel, Color[] inPixels, Color[] outPixels, int width, int height, bool alpha, ConvolveWrapping edgeAction)
 
static void ConvolveV (Kernel kernel, Color[] inPixels, Color[] outPixels, int width, int height, bool alpha, ConvolveWrapping edgeAction)
 

Public Attributes

Kernel Kernel
 The kernel to use. More...
 
bool Alpha =true
 True if alpha channel is in use. More...
 
ConvolveWrapping EdgeAction =ConvolveWrapping.ClampEdges
 The wrapping to use. More...
 

Constructor & Destructor Documentation

Loonim.ConvolveFilter.ConvolveFilter ( )
inline

Construct a filter with a null kernel. This is only useful if you're going to change the kernel later on.

Loonim.ConvolveFilter.ConvolveFilter ( float[]  matrix)
inline

Construct a filter with the given 3x3 kernel.

Parameters
matrixan array of 9 floats containing the kernel
Loonim.ConvolveFilter.ConvolveFilter ( int  rows,
int  cols,
float[]  matrix 
)
inline

Construct a filter with the given 3x3 kernel.

Parameters
rowsthe number of rows in the kernel
colsthe number of columns in the kernel
matrixan array of rows*cols floats containing the kernel
Loonim.ConvolveFilter.ConvolveFilter ( Kernel  kernel)
inline

Construct a filter with the given 3x3 kernel.

Parameters
kernelThe kernel.

Member Function Documentation

static void Loonim.ConvolveFilter.Convolve ( Kernel  kernel,
Color[]  inPixels,
Color[]  outPixels,
int  width,
int  height,
ConvolveWrapping  edgeAction 
)
inlinestatic

Convolve with a 2D kernel

static void Loonim.ConvolveFilter.Convolve ( Kernel  kernel,
Color[]  inPixels,
Color[]  outPixels,
int  width,
int  height,
bool  alpha,
ConvolveWrapping  edgeAction 
)
inlinestatic

Convolve with a 2D kernel

static void Loonim.ConvolveFilter.ConvolveH ( Kernel  kernel,
Color[]  inPixels,
Color[]  outPixels,
int  width,
int  height,
bool  alpha,
ConvolveWrapping  edgeAction 
)
inlinestatic

Convolve with a kernel consisting of one row

static void Loonim.ConvolveFilter.ConvolveHV ( Kernel  kernel,
Color[]  inPixels,
Color[]  outPixels,
int  width,
int  height,
bool  alpha,
ConvolveWrapping  edgeAction 
)
inlinestatic

Convolve with a 2D kernel

static void Loonim.ConvolveFilter.ConvolveV ( Kernel  kernel,
Color[]  inPixels,
Color[]  outPixels,
int  width,
int  height,
bool  alpha,
ConvolveWrapping  edgeAction 
)
inlinestatic

Convolve with a kernel consisting of one column

virtual void Loonim.ConvolveFilter.Filter ( int  width,
int  height,
Color[]  src,
Color[]  target 
)
inlinevirtual

Member Data Documentation

bool Loonim.ConvolveFilter.Alpha =true

True if alpha channel is in use.

ConvolveWrapping Loonim.ConvolveFilter.EdgeAction =ConvolveWrapping.ClampEdges

The wrapping to use.

Kernel Loonim.ConvolveFilter.Kernel

The kernel to use.