public class Kernel extends java.lang.Object implements Persistent
Modifier and Type | Field and Description |
---|---|
protected double |
divisor |
double[][] |
kernel |
Constructor and Description |
---|
Kernel()
This constructor is useful only for persistence
|
Kernel(double[][] k)
Constructor.
|
Kernel(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() |
int |
getLado()
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 Kernel()
public Kernel(double[][] k)
k
- datos del kernelpublic Kernel(double[][] k, double divisor)
k
- datos del kernelpublic double kernelOperation(Kernel k)
public double convolution(Kernel k)
k
- public double getDivisor()
public void setDivisor(double divisor)
public int getLado()
public void rgbNormalization()
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()