Relative Content

Tag Archive for javaimage-processingfft

(JavaFX + JTransforms) Image convolution from scratch

Since JavaFX lacks an java.awt.image.ConvolveOp equivalent I started writing a made from scratch Image convolution method. My first approach was based on direct convolution in the spatial domain but it was so slow so I learned about Discrete Fourier Transform. Theory says that multiplying functions in the frequency domain is equivalent to convolving with the Fourier transform in the space domain. How ever I haven’t figure out yet how to perform a proper element wise multiplication between the input image DFT and the kernel DFT. Result image is barely recognizable and full of square artifacts.