#include <Kernel.h>
Inheritance diagram for Kernel::
Public Methods | |
Kernel (char *name="") | |
Kernel (int w, int h, char *name="") | |
void | readKernel (char *name) |
void | writeKernel () |
void | showKernel () |
void | readKernelCoeffs (char *name) |
void | writeKernelCoeffs (char *name, char *comment) |
int | getKernelType () |
Definition at line 51 of file Kernel.h.
|
Creates a kernel with the specified name without allocating space for the kernel data. |
|
Creates a kernel of size wxh with the specified name and allocates space for storing the kernel data. |
|
Returns the kernel type. Currently defined types are:
|
|
Reads the kernel data from file name and stores it in the data structure pointed out by pixels. The file name should be an image file.
|
|
Reads kernel coefficients from the file specified by name. The format of the file should be:
#Comment height width coeff(0,0) coeff(0,1) ... coeff(0,width-1) ... coeff(height-1,0) coeff(height-1,1) ... coeff(height-1,width-1)
Definition at line 12 of file Kernel.cpp. |
|
Opens a window and renders in it the current kernel.
|
|
Writes the current kernel as an image to the file given by img_name.
|
|
Writes kernel coefficients to the file specified by name; extra information can be stored inside the file as a comment. The format of the file is:
#Comment height width coeff(0,0) coeff(0,1) ... coeff(0,width-1) ... coeff(height-1,0) coeff(height-1,1) ... coeff(height-1,width-1)
Definition at line 50 of file Kernel.cpp. |