imageprocessorimagick

package
v0.0.0-...-7f3e199 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: LGPL-3.0 Imports: 6 Imported by: 0

README

Install build dependencies (Debian/Ubuntu)

go get -u -d gocv.io/x/gocv
cd "$(go env GOPATH)"/src/gocv.io/x/gocv
make install

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMatIsEmpty = errors.New(`mat is empty`)
)

Functions

This section is empty.

Types

type ImageProcessor

type ImageProcessor struct {
}

ImageProcessor is a tool to manipulate images

func NewImageProcessor

func NewImageProcessor() *ImageProcessor

NewImageProcessor creates an instance of `ImageProcessor` (image manipulation tool).

func (*ImageProcessor) Resize

func (proc *ImageProcessor) Resize(
	in io.Reader,
	out io.Writer,
	toWidth, toHeight uint,
) (imageFormat imageprocessorcommon.ImageFormat, err error)

Resize reads an image from `in` and writes a resized image to `out` (new image size: `toWidth`x`toHeight`).

It returns image format and (if occured:) an error.

Jump to

Keyboard shortcuts

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