Documentation ¶
Index ¶
- Constants
- type Config
- type CropFunc
- type FloatRange
- type IntRange
- type Labels
- type PadFunc
- type ResizeAlg
- type ResizeFunc
- type Side
- type Transformer
- func Crop(fn CropFunc) Transformer
- func FlipLR() Transformer
- func FlipUD() Transformer
- func Noop() Transformer
- func OneOf(ts ...Transformer) Transformer
- func Pad(fn PadFunc) Transformer
- func Resize(fn ResizeFunc, algs ...ResizeAlg) Transformer
- func Sequential(ts ...Transformer) Transformer
- func SomeOf(r IntRange, ts ...Transformer) Transformer
- func Sometimes(p float64, t Transformer) Transformer
- type TransformerFunc
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CropFunc ¶
func PercentCrop ¶
func PercentCrop(sides map[Side]FloatRange) CropFunc
type FloatRange ¶
type PadFunc ¶
func PercentPad ¶
func PercentPad(sides map[Side]FloatRange) PadFunc
type ResizeFunc ¶
func FixedResize ¶
func FixedResize(w, h int) ResizeFunc
func PercentResize ¶
func PercentResize(w FloatRange, h FloatRange) ResizeFunc
func PixelResize ¶
func PixelResize(w IntRange, h IntRange) ResizeFunc
type Transformer ¶
type Transformer interface {
Transform(cfg *Config, img image.Image, labels Labels) (image.Image, Labels)
}
func Crop ¶
func Crop(fn CropFunc) Transformer
func FlipLR ¶
func FlipLR() Transformer
func FlipUD ¶
func FlipUD() Transformer
func Noop ¶
func Noop() Transformer
func OneOf ¶
func OneOf(ts ...Transformer) Transformer
func Pad ¶
func Pad(fn PadFunc) Transformer
func Resize ¶
func Resize(fn ResizeFunc, algs ...ResizeAlg) Transformer
func Sequential ¶
func Sequential(ts ...Transformer) Transformer
func SomeOf ¶
func SomeOf(r IntRange, ts ...Transformer) Transformer
func Sometimes ¶
func Sometimes(p float64, t Transformer) Transformer
Click to show internal directories.
Click to hide internal directories.