Class ConvolutionKernel
java.lang.Object
|
+--ConvolutionKernel
- public class ConvolutionKernel
- extends java.lang.Object
The interface for the convolution kernel.
- Author:
- Simon Horne.
Method Summary |
javax.swing.JPanel |
create25inputPanel()
Creates the user interface for inclusion in the GUI. |
javax.swing.JPanel |
createPanel()
Creates the interface panel for inclusion in the convolution GUI. |
double[][] |
getKernel()
Checks the text boxes for values and returns a 2D array of their
double representations. |
int |
getKernelHeight()
Gets the height of the current kernel. |
int |
getKernelWidth()
Gets the width of the current kernel. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ConvolutionKernel
public ConvolutionKernel()
getKernel
public double[][] getKernel()
- Checks the text boxes for values and returns a 2D array of their
double representations.
- Returns:
- The 2D array of the double values from the text boxes.
getKernelWidth
public int getKernelWidth()
- Gets the width of the current kernel.
- Returns:
- The width of the kernel.
getKernelHeight
public int getKernelHeight()
- Gets the height of the current kernel.
- Returns:
- The height of the kernel.
create25inputPanel
public javax.swing.JPanel create25inputPanel()
- Creates the user interface for inclusion in the GUI.
createPanel
public javax.swing.JPanel createPanel()
- Creates the interface panel for inclusion in the convolution GUI.