lsd

package module
v0.0.0-...-2d91fdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

README

LSD-a-line-segment-detector

An incomplete golang reimplementation of LSD: A Line Segment Detector (http://www.ipol.im/pub/art/2012/gjmr-lsd/)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseApproxLogGamma = false

UseApproxLogGamma denotes whether to use the approximations to LogGamma found in the original LSD source code.

Functions

This section is empty.

Types

type LineSegment

type LineSegment struct {
	P1, P2         Point // Endpoints
	Width          float64
	AnglePrecision float64 // In (0, 1) given by the angle tolerance divided by 180 degrees
	Confidence     float64 // The negative base-10 logarithm of the NFA (Number of False Alarms) value.

}

LineSegment defines a line segment detected by the LSD algorithm.

type Point

type Point struct {
	X, Y float64
}

Point represents a point in the 2-D space of the image.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL