image

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

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

Go to latest
Published: Nov 30, 2018 License: NCSA Imports: 19 Imported by: 8

README

Image Build Status

ASM

To build the ASM you need the following packages:

go get github.com/klauspost/asmfmt/cmd/asmfmt
go get github.com/minio/c2goasm
go get github.com/minio/asm2plan9s

you will also need the yasm package

Notes:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r io.Reader, opts ...Option) (types.Image, error)

func Resize

func Resize(inputImage types.Image, opts ...Option) (types.Image, error)

Types

type Layout

type Layout int
const (
	HWCLayout Layout = iota
	CHWLayout
	InvalidLayout Layout = 9999
)

type Option

type Option func(o *Options)

func ChannelLayout

func ChannelLayout(layout Layout) Option

func Context

func Context(ctx context.Context) Option

func Height

func Height(height int) Option

func Mean

func Mean(mean [3]float32) Option

func MeanValue

func MeanValue(mean float32) Option

func Mode

func Mode(mode types.Mode) Option

func Resized

func Resized(width, height int) Option

func Width

func Width(width int) Option

type Options

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

func NewOptions

func NewOptions(opts ...Option) *Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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