gamma

package
v0.0.0-...-60e87b8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gamma provides gamma Processor and CorrectionProcessor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorrectionProcessor

type CorrectionProcessor struct {
	imageserver_image.Processor
	// contains filtered or unexported fields
}

CorrectionProcessor is a Processor that corrects gamma.

func NewCorrectionProcessor

func NewCorrectionProcessor(prc imageserver_image.Processor, enabled bool) *CorrectionProcessor

NewCorrectionProcessor creates a CorrectionProcessor.

func (*CorrectionProcessor) Process

func (prc *CorrectionProcessor) Process(nim image.Image, params imageserver.Params) (image.Image, error)

Process implements Processor.

type Processor

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

Processor is a Processor that applies gamma transformation.

func NewProcessor

func NewProcessor(gamma float64, highQuality bool) *Processor

NewProcessor creates a Processor.

func (*Processor) Change

func (prc *Processor) Change(params imageserver.Params) bool

Change implements Processor.

func (*Processor) Process

func (prc *Processor) Process(nim image.Image, params imageserver.Params) (image.Image, error)

Process implements Processor. It doesn't return error.

Jump to

Keyboard shortcuts

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