processors

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMatToImg

func CMatToImg(mat CMat) (image.Image, error)

func GetImageFromRaw

func GetImageFromRaw(rawImg []byte) (image.Image, libraw.ImgMetadata, error)

func GrayScale

func GrayScale(imgs ...image.Image) ([]image.Image, error)

Types

type CMat added in v1.0.2

type CMat C.CMat

func Colorize

func Colorize(img CMat, colormap ColormapTypes) (CMat, error)

func StackImages

func StackImages(imgs ...image.Image) (CMat, error)

type ColormapTypes

type ColormapTypes uint8
const (
	COLORMAP_AUTUMN           ColormapTypes = 0
	COLORMAP_BONE             ColormapTypes = 1
	COLORMAP_JET              ColormapTypes = 2
	COLORMAP_WINTER           ColormapTypes = 3
	COLORMAP_RAINBOW          ColormapTypes = 4
	COLORMAP_OCEAN            ColormapTypes = 5
	COLORMAP_SUMMER           ColormapTypes = 6
	COLORMAP_SPRING           ColormapTypes = 7
	COLORMAP_COOL             ColormapTypes = 8
	COLORMAP_HSV              ColormapTypes = 9
	COLORMAP_PINK             ColormapTypes = 10
	COLORMAP_HOT              ColormapTypes = 11
	COLORMAP_PARULA           ColormapTypes = 12
	COLORMAP_MAGMA            ColormapTypes = 13
	COLORMAP_INFERNO          ColormapTypes = 14
	COLORMAP_PLASMA           ColormapTypes = 15
	COLORMAP_VIRIDIS          ColormapTypes = 16
	COLORMAP_CIVIDIS          ColormapTypes = 17
	COLORMAP_TWILIGHT         ColormapTypes = 18
	COLORMAP_TWILIGHT_SHIFTED ColormapTypes = 19
	COLORMAP_TURBO            ColormapTypes = 20
	COLORMAP_DEEPGREEN        ColormapTypes = 21
)

type GenericImage

type GenericImage struct {
	image.Image
}

Generic image wraps the image.Image interface And provides methods for getting the Pix and Rect Values without typecasting

func NewGenericImage

func NewGenericImage(img image.Image) GenericImage

func (GenericImage) GetPix

func (img GenericImage) GetPix() ([]uint8, bool)

Get the pixel vaues from the image

func (GenericImage) GetRect

func (img GenericImage) GetRect() (image.Rectangle, bool)

Get the rectangle of the image

Jump to

Keyboard shortcuts

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