hough_circle_draw: Calculates a circular hough transform and draws the predicted...

Description Usage Arguments Value Functions See Also Examples

View source: R/filters.R

Description

This transform accentuates circular shapes

Usage

 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
)

Arguments

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

Value

image

Functions

See Also

Other filters: circular_hough_transform(), compile_sobel_filter(), compile_variance_filter(), dog_filter()

Examples

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))

jspaezp/clasifierrr documentation built on March 2, 2020, 11:20 a.m.