fattal02

package
v0.0.0-...-55d3409 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fattal02

type Fattal02 struct {
	// Algo parameters
	DetailLevel int
	Noise       float64
	Alpha       float64
	Beta        float64
	Gamma       float64
	BlackPoint  float64
	WhitePoint  float64
	Saturation  float64

	// Our extra params
	GammaExpand bool // whether to perform sRGB gamma expansion on final output
	DumpGrids   bool // whether to write greyscale image files for the intermediate grids
	// contains filtered or unexported fields
}

Fattal02 is a straightforward port of the C++ implementation from the PFSTMO package. It relies on the fftw3 library, and uses cgo to link to it.

func NewDefaultFattal02

func NewDefaultFattal02(img hdr.Image) *Fattal02

NewDefaultFattal02 uses the default parameter settings as per the `pfstmo_fattal02` command, when using the FFT solver.

func (*Fattal02) Perform

func (f02 *Fattal02) Perform() image.Image

Perform implements `github.com/mdouchement/hdr/tmo.ToneMappingOperator`

Jump to

Keyboard shortcuts

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