Code files for Digital Signal Processing algorithms
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Convolve2D.java
ConvolveTestHarness.java
KernelFactory2D.java
README.md
koreaninstrument.jpg
output1.jpg
output2.jpg
output3.jpg
output4.jpg
output5.jpg

README.md

Digital-Signal-Processing

Code files for Digital Signal Processing algorithms

Use these Java classes to execute convolution on BufferedImages.
Here is an example of how to do it ...

 // bi is BufferedImage from somewhere earlier in program ...
							
 try {
   Convolve2D convolve2D = new Convolve2D();					
   convolve2D.setBufferedImage(bi);							
   KernelFactory2D kf2D = KernelFactory2D.getInstance();		
   int[][] kernel = kf2D.getKernelSmoothingGaussianBlur(3, 2);
   convolve2D.setKernel(kernel);								
										
   // execute the convolution and get the returned BufferedImage
   BufferedImage img = convolve2D.convolve();	
} catch( Exception ex ) {
  // do something with the Exception ...
}