Open ajestudillo opened 4 years ago
The error occurs because the height of boats image is not a power of 2. FFT for non power of 2 is possible theoretically but not supported in imager currently.
I use other package such as fftwtools to do FFT for non power of 2. See an example shown below.
library(imager)
g <- grayscale(boats)
tmp <- fftwtools::fftw2d(as.matrix(g)) # complex matrix
Hello all,
I recently discovered imager and I am very eager to try. I am running R version 3.6.1.
I want to apply different filters to a set of images. However, I am having problems getting the fourier transformation
FFT(boats)
I obtain the following error:
I have tried with other images that I have loaded and I get a similar error:
Any help would be much appreciated