Description Usage Arguments Functions See Also Examples
The sobel filter is used to detect edges in the images
1 2 3 | compile_sobel_filter(width, dim_img)
sobel_filter(img, width = 3, img_fft = fftwtools::fftw2d(img))
|
width |
width of the filter to be applied |
dim_img |
the dimensions of the image to be used later during filtering, only needed if pre-compiling the filter. |
img |
Dimensions of the image |
img_fft |
optional argument to pass the pre-computed fourier tranform of the image from 'fftwtools::fftw2d(img)'. |
compile_sobel_filter
: pre-calculates parameters and returns a function
Other filters:
circular_hough_transform()
,
compile_hough_circle_draw()
,
compile_variance_filter()
,
dog_filter()
1 2 3 4 5 | test_image <- matrix(runif(81), 9)
sobel_filter(test_image, 3)
my_sobel_filter <- compile_sobel_filter(3, dim(test_image))
my_sobel_filter(test_image)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.