Description Usage Arguments Value Examples
Apply fft filter
1 | fft_filter(im, xpass, kernel = "ideal", cutoff, cutoff2, order = 4)
|
im |
an image |
xpass |
either "lowpass", "highpass", or "bandpass" |
kernel |
either "ideal", "gauss", "butterworth", or "dc" |
cutoff |
cutoff frequency |
cutoff2 |
second cutoff frequency |
order |
order of butterworth filter |
an image
1 2 3 4 5 6 7 | plot(fft_filter(regatta, "lowpass", "ideal", 10)) # ideal lowpass filterig
plot(fft_filter(regatta, "lowpass", "gauss", 10)) # gaussian lowpass filterig
# 5th-order butterworth lowpass filtering
plot(fft_filter(regatta, "lowpass", "butterworth", 10, order = 5))
im = im_gray(regatta)
plot(fft_filter(im, "highpass", "gauss", 60), rescale = TRUE) # gaussian highpass filterig
plot(fft_filter(im, "bandpass", "gauss", 10, 20), rescale = TRUE) # gaussian bandpass filterig
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.