cvutils

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 4 Imported by: 0

README

cvutils

Image processing utils with opencv

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Black = Color{
		Red:   0,
		Green: 0,
		Blue:  0,
	}
	White = Color{
		Red:   255,
		Green: 255,
		Blue:  255,
	}
	Red = Color{
		Red:   255,
		Green: 0,
		Blue:  0,
	}
	Green = Color{
		Red:   0,
		Green: 255,
		Blue:  0,
	}
	Blue = Color{
		Red:   0,
		Green: 0,
		Blue:  255,
	}
)

Functions

func ShowIMG added in v1.1.0

func ShowIMG(opts ImageOptions)

Types

type Color

type Color struct {
	Red   uint8
	Green uint8
	Blue  uint8
}

type DrawFunc added in v1.1.0

type DrawFunc func(image Image, color Color, point Point)

type DrawOptions added in v1.1.0

type DrawOptions struct {
	DrawFunc      DrawFunc
	Color         Color
	StartingPoint Point
	EndPoint      Point
}

type Image

type Image struct {
	Mat gocv.Mat
}

func (Image) GetColor

func (m Image) GetColor(row int, col int) Color

func (Image) SetColor

func (m Image) SetColor(row int, col int, color Color)

type ImageOptions added in v1.1.0

type ImageOptions struct {
	Name       string
	Flags      gocv.IMReadFlag
	WindowName string
	Draw       DrawOptions
}

type Point added in v1.1.0

type Point struct {
	X int
	Y int
}

Jump to

Keyboard shortcuts

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