images

package
v22.11.7 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterImages

func FilterImages(images []*abstract.Image, f *Filter) []*abstract.Image

FilterImages ...

Types

type Filter

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

Filter ...

func NewFilter

func NewFilter(predicate Predicate) *Filter

NewFilter creates a new filter with the given predicate

func (*Filter) And

func (f *Filter) And(other *Filter) *Filter

And ...

func (*Filter) Not

func (f *Filter) Not() *Filter

Not ...

func (*Filter) Or

func (f *Filter) Or(other *Filter) *Filter

Or ...

type Predicate

type Predicate func(img *abstract.Image) bool

Predicate ...

func AndFilter

func AndFilter(filters ...Predicate) Predicate

AndFilter ...

func Not

func Not(f Predicate) Predicate

Not ...

func OrFilter

func OrFilter(filters ...Predicate) Predicate

OrFilter ..

Jump to

Keyboard shortcuts

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