Learn R Programming

imager (version 0.45.8)

nfline: Plot a line, Hesse normal form parameterisation

Description

This is a simple interface over abline meant to be used along with the Hough transform. In the Hesse normal form (theta,rho), a line is represented as the set of values (x,y) such that cos(theta)*x + sin(theta)*y = rho. Here theta is an angle and rho is a distance. See the documentation for hough_lines.

Usage

nfline(theta, rho, col, ...)

Value

nothing

Arguments

theta

angle (radians)

rho

distance

col

colour

...

other graphical parameters, passed along to abline

Author

Simon Barthelme

Examples

Run this code
cimg.limit.openmp()
#Boring example, see ?hough_lines
plot(boats)
nfline(theta=0,rho=10,col="red")

Run the code above in your browser using DataLab