func Gamma(gamma float32) Filter {
	e := 1 / maxf32(gamma, 1.0e-5)
	return &colorchanFilter{
		fn: func(x float32) float32 {
			return powf32(x, e)
		},
		lut: true,
	}
}
// Gamma creates a filter that performs a gamma correction on an image.
// The gamma parameter must be positive. Gamma = 1 gives the original image.
// Gamma less than 1 darkens the image and gamma greater than 1 lightens it.
Gamma creates a filter that performs a gamma correction on an image.
The gamma parameter must be positive. Gamma = 1 gives the original image.
Gamma less than 1 darkens the image and gamma greater than 1 lightens it.
// Gamma creates a filter that performs a gamma correction on an image . // The gamma parameter must be positive . Gamma = 1 gives the original image . // Gamma less than 1 darkens the image and gamma greater than 1 lightens it .
func Gamma(gamma float32) Filter {
	e := 1 / maxf32(gamma, 1.0e-5)
	return &colorchanFilter{
		fn: func(x float32) float32 {
			return powf32(x, e)
		},
		lut: true,
	}
}
func Gamma ( gamma float32 ) Filter { e := 1 / maxf32 ( gamma , 1.0e-5 ) return & colorchanFilter { fn : func ( x float32 ) float32 { return powf32 ( x , e ) } , lut : true , } }
Gamma creates a filter that performs a gamma correction on an image.
Gamma creates a filter that performs a gamma correction on an image .