You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, @rachana-sathish ,
Gabor filter gives output a complex number, with coefficients of real and imaginary part as follows gaborFilt_real,gaborFilt_imag = gabor(img_arr,frequency=0.6)
For feature extraction, we are interested in magnitude of the output, therefore, we do the following gaborFilt = (gaborFilt_real**2+gaborFilt_imag**2)//2
However, shouldn't be np.sqrt((gaborFilt_real**2+gaborFilt_imag**2)), |z|=sqrt(r^2+i^2)
I guess, it won't have any effect on training of the model, as the real and imaginary part have been incorporated in some form.
Thanks for your time and effort.
The text was updated successfully, but these errors were encountered:
Hey, @rachana-sathish ,
Gabor filter gives output a complex number, with coefficients of real and imaginary part as follows
gaborFilt_real,gaborFilt_imag = gabor(img_arr,frequency=0.6)
For feature extraction, we are interested in magnitude of the output, therefore, we do the following
gaborFilt = (gaborFilt_real**2+gaborFilt_imag**2)//2
However, shouldn't be
np.sqrt((gaborFilt_real**2+gaborFilt_imag**2))
, |z|=sqrt(r^2+i^2)I guess, it won't have any effect on training of the model, as the real and imaginary part have been incorporated in some form.
Thanks for your time and effort.
The text was updated successfully, but these errors were encountered: