edges

package module
v0.0.0-...-b0de6fc Latest Latest
Warning

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

Go to latest
Published: May 13, 2016 License: MIT Imports: 4 Imported by: 0

README

edges

A Go implementation of the Shen-Castan infinite symmetric exponential filter (ISEF) edge detector.

Documentation

Index

Constants

View Source
const (
	WindowSize      = 7
	Ratio           = 0.80
	SmoothingFactor = 0.94
	ThinningFactor  = 0
)

* the four dials / knobs you can play with * to control the results from this algorithm

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

func NewEdgeDetector

func NewEdgeDetector(img image.Image) *Detector

func (*Detector) DoHysteresis

func (d *Detector) DoHysteresis(b bool)

func (*Detector) SetBackgroundColor

func (d *Detector) SetBackgroundColor(c color.Color)

func (*Detector) SetForegroundColor

func (d *Detector) SetForegroundColor(c color.Color)

func (*Detector) SetRatio

func (d *Detector) SetRatio(r float32)

func (*Detector) SetSmoothingFactor

func (d *Detector) SetSmoothingFactor(factor float32)

func (*Detector) SetThinningFactor

func (d *Detector) SetThinningFactor(factor int)

func (*Detector) SetWindowSize

func (d *Detector) SetWindowSize(size int)

func (*Detector) ShenCastan

func (d *Detector) ShenCastan() *image.Gray

Jump to

Keyboard shortcuts

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