Description Usage Arguments Value Functions See Also Examples
This transform accentuates circular shapes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | compile_hough_circle_draw(
width,
sobel_width,
dim_img,
tolerance = 11,
pct_max = 0.95,
blurr = 1/8
)
hough_circle_draw(
img,
width,
sobel_width,
tolerance,
pct_max = 0.95,
blurr = 1/8
)
|
width |
expected width of the circles |
sobel_width |
width of the sobel filter that will be used to detect the edges |
pct_max |
the percentage of the maximum intensity that is considered to draw the circles (defaults to 0.95, anyting 95 intensity) |
img |
image to transform |
blurra |
numeric value indicating the ratio of the width to blurr, 1 means have the blurr be the same as the circle width |
image
compile_hough_circle_draw
: pre-calculates parameters and returns a function
Other filters:
circular_hough_transform()
,
compile_sobel_filter()
,
compile_variance_filter()
,
dog_filter()
1 2 3 4 5 6 7 | x = readImage(system.file('images', 'shapes.png', package='EBImage'))
hough <- hough_circle_draw(x, 51, 3, 3)
# display(hough)
# display(generate_overlay(x, hough > 0.68))
hough <- hough_circle_draw(x, 71, 3, 3, 0.9)
# display(hough)
# display(generate_overlay(x, hough > 0.68))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.