I am trying to use the rodilius filter on an image using the g’mic CLI installed through brew (brew install gmic) on a mac but I am getting the following error: “Specified real and imaginary parts have non 2^N dimension along the Y-axis)”
Any ideas what can be done to fix this issue?
Here’s the relevant log:
gmic -input input/world.jpg rodilius 10,4,400,16 smooth 60,0,1,1,4 normalize_local 10,16 -output output/world_rodilius.jpg
[gmic]-0./ Start G’MIC interpreter.
[gmic]-0./ Input file ‘input/world.jpg’ at position 0 (1 image 1024x1024x1x3).
[gmic]-1./ Apply rodilius filter on image [0] with amplitude 10, thickness 4, sharpness 400, 16 orientations, offset 0 and brighter color mode.
[gmic] *** Error in ./rodilius/*repeat/*local/(…)/*local/convolve_fft/*repeat/*local/ *** Command ‘fft’: gmicList::FFT(): Specified real and imaginary parts (1280,1280,1,3) have non 2^N dimension along the Y-axis.
[gmic] Command ‘fft’ has the following description:
fft (+):
_{ x | y | z }...{ x | y | z }
Compute the direct fourier transform (real and imaginary parts) of selected images,
optionally along the specified axes only.
Example: [#1] image.jpg luminance +fft append[-2,\
-1] c norm[-1] log[-1] shift[-1] 50%,50%,0,0,2
[#2] image.jpg w2={int(w/2)} h2={int(h/2)} fft shift $w2,$h2,\
0,0,2 ellipse $w2,$h2,30,30,0,1,0 shift -$w2,-$h2,0,0,2 ifft remove[-1]
Tutorial: https://gmic.eu/tutorial/_fft.shtml