public class Convolution extends Filter
Class that applies a specified kernel to a data source to convolve it.
Functionality includes:
Kernel
used for convolutionFilter.Mode
Constructor and Description |
---|
Convolution(DataSource original,
Kernel kernel,
Filter.Mode mode,
int... cols)
Initialized a new instance with the specified data source, convolution
kernel, edge handling mode, and columns to be filtered.
|
Modifier and Type | Method and Description |
---|---|
protected void |
filter()
Invokes the filtering routine.
|
Kernel |
getKernel()
Returns the kernel.
|
add, add, clear, dataAdded, dataRemoved, dataUpdated, get, getColumnCount, getColumnCountFiltered, getIndex, getIndexOriginal, getMode, getOriginal, getOriginal, getRowCount, getRowCountFiltered, isFiltered, set, setMode
addDataListener, getColumn, getColumnTypes, getRow, getStatistics, isColumnNumeric, iterator, notifyDataAdded, notifyDataRemoved, notifyDataUpdated, removeDataListener, setColumnTypes
public Convolution(DataSource original, Kernel kernel, Filter.Mode mode, int... cols)
original
- DataSource to be filtered.kernel
- Kernel to be used.mode
- Mode of filtering.cols
- Column indexes.