Home :: @root classes

class Kernel

^ 
********************************************************************** Represents a matrix that describes how a specified color and its surrounding colors affect the value computed for the color's position in the given image of a filtering operation.

Applying a kernel to an image is a spatial operation that computes a new color from an input color by multiplying the kernel with the surrounding colors of the input color. This allows the new color to be affected by the immediate neighborhood in a way that can be mathematically specified with a kernel. For example, a kernel of NxN 1 values computes an average of the NxN neighboring colors as the new color. This has the overall effect of blurring the image.

Source:
kernel.h:25
Author:
Robert C. Duvall
Version:
unknown

Contents

^ 
EntityTypeScopeShort Description
~Kerneldestructor publicautomatically generated
Kernelconstructor public Create a kernel from the given data Note, no error checking!
Kernelconstructor public Create a kernel from the given file of data Format of file is assumed to be width height data ..
Kernelconstructor public Create a kernel from another
applymethod public Apply kernel to given image a given point [x,y] producing a new color
operator =operator publicautomatically generated

destructor ~Kernel

? ^  > 
automatically generated
Source:
kernel.h
Code:
public ~ Kernel ( )

constructor Kernel

? ^  < > 
Create a kernel from the given data Note, no error checking!
Source:
kernel.h:32
Code:
public Kernel ( unsigned int width = 0 ,
unsigned int height = 0 ,
double * data = 0 )

constructor Kernel

? ^  < > 
Create a kernel from the given file of data Format of file is assumed to be width height data ..
Source:
kernel.h:39
Code:
public Kernel ( istream & input )

constructor Kernel

? ^  < > 
Create a kernel from another
Source:
kernel.h:43
Code:
public Kernel ( const Kernel & other )

method apply

? ^  < > 
Apply kernel to given image a given point [x,y] producing a new color
Source:
kernel.h:50
Code:
public Color apply ( const Image & target ,
unsigned int x ,
unsigned int y ) const

operator =

? ^  < > 
automatically generated
Source:
kernel.h
Code:
public Kernel & operator = ( const Kernel & )

Created Thu Oct 10 01:13:46 2002.
This documentation was generated automatically by
ccdoc v0.8 r26 2001/11/28 bin_opt_suncc_solaris-2.8.
Click here to submit a bug report or feature request.
Click here to return to the top of the page.