public class DefaultKernel extends java.lang.Object implements Persistent, Kernel
Constructor and Description |
---|
DefaultKernel()
This constructor is useful only for persistence
|
DefaultKernel(double[][] k)
Constructor.
|
DefaultKernel(double[][] k,
double divisor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
convolution(Kernel k)
Aplica la operación de convolución del kernel con otro kernel
pasado por parámetro
|
double |
getDivisor() |
double[][] |
getKernel() |
int |
getSide()
Obtiene el tamaño del kernel que viene dado por
el número de pixeles de su lado.
|
double |
kernelOperation(Kernel k) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
rgbNormalization()
Aplica ls operación 0xff para todos los elementos del
kernel.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDivisor(double divisor) |
public DefaultKernel()
public DefaultKernel(double[][] k)
k
- datos del kernelpublic DefaultKernel(double[][] k, double divisor)
k
- datos del kernelpublic double getDivisor()
getDivisor
in interface Kernel
public void setDivisor(double divisor)
setDivisor
in interface Kernel
public int getSide()
Kernel
public double kernelOperation(Kernel k)
kernelOperation
in interface Kernel
public double convolution(Kernel k)
Kernel
convolution
in interface Kernel
public void rgbNormalization()
Kernel
rgbNormalization
in interface Kernel
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public static void registerPersistence()