tidy_hough_mvg: Tidy up Hough Lines object

View source: R/oxy-hough.R

tidy_hough_mvgR Documentation

Tidy up Hough Lines object

Description

Create a list summarizing hough lines and their intersections

Usage

tidy_hough_mvg(mvg, margin = 0.05)

Arguments

mvg

Magick Vector Graphics object, as output by ‘magick::image_hough_txt(format=’mvg')“

margin

Allowed margin around the image for detection of line intersections. Default: 0.05

Value

A list containing Hough Lines parameters used, number of lines and intersections detected, detailed data about lines and intersections.

Examples

## Not run: 
if(interactive()){
 if(magick_config()$version > "6.8.9"){
   shape <- demo_image("shape_rectangle.gif")
   rectangle <- image_canny(shape)
   rectangle %>% image_hough_txt(format = 'mvg') %>% tidy_hough_mvg()
   }
 }

## End(Not run)

dmi3kno/bunny documentation built on Dec. 7, 2022, 7:22 p.m.