filler

package
v0.0.0-...-a1867f6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Skyfiller

type Skyfiller struct {
	BlendAreaFactor    float64 // Height of the blend area, in percent (100%=1.0) of detected sky gap height.
	SkyHeight          int     // Height of the sky gap in pixels. Non-zero overrides automatic sky gap detection.
	LowerSkyFactor     float64 // Amount to lower the sky boundary by, in percent (100%=1.0) of detected sky gap height.
	ShowSamples        bool    // Show sample points as red pixels.
	ShowBounds         bool    // Show sky gap bounds.
	AdobeRGB           bool    // Assume AdobeRGB instead of sRGB.
	CompressionQuality int     // JPEG compression quality (0-100) of the output file (if JPEG).
}

Skyfiller is the main entry point for Skyfill operations.

func New

func New() Skyfiller

New returns a new Skyfiller instance with some sensible default values.

func (*Skyfiller) LoadImage

func (sf *Skyfiller) LoadImage(filename string) imgio.WithMetadata

func (*Skyfiller) Process

func (sf *Skyfiller) Process(inputImage imgio.Mutable, expander expander.ImageExpander)

Process skyfills a single image.

func (*Skyfiller) SaveImage

func (sf *Skyfiller) SaveImage(outputFilename string, image imgio.WithMetadata) (err error)

Jump to

Keyboard shortcuts

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