transformer

package
v0.0.0-...-78d9b97 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormulaTransformer

type FormulaTransformer struct {
}

FormulaTransformer turns one image stream into another using a oldformula

func (*FormulaTransformer) Transform

func (f *FormulaTransformer) Transform(settings *Settings) *image.NRGBA

Transform converts the input image using the given oldformula.

type Settings

type Settings struct {
	PatternViewportXMin float64
	PatternViewportXMax float64
	PatternViewportYMin float64
	PatternViewportYMax float64
	InputImage          image.Image
	Formula             *command.CreateSymmetryPattern
	CoordinateThreshold imageoutput.CoordinateThreshold
	Eyedropper          imageoutput.Eyedropper
	OutputWidth         int
	OutputHeight        int
}

Settings are required to transform a given image.

type Transformer

type Transformer interface {
	Transform(setting *Settings) *image.NRGBA
}

Transformer turns one image stream into another

Jump to

Keyboard shortcuts

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