Documentation ¶
Index ¶
- Constants
- Variables
- type NewOpt
- type PixelSort
- func (ps *PixelSort) BlueComp(a, b color.Color) bool
- func (ps *PixelSort) GreenComp(a, b color.Color) bool
- func (ps *PixelSort) HiThresholdColorMean(color color.Color) bool
- func (ps *PixelSort) InThresholdColorMean(color color.Color) bool
- func (ps *PixelSort) LoThresholdColorMean(color color.Color) bool
- func (ps *PixelSort) MeanComp(a, b color.Color) bool
- func (ps *PixelSort) OutThresholdColorMean(color color.Color) bool
- func (ps *PixelSort) RedComp(a, b color.Color) bool
- func (ps *PixelSort) Sort() *image.RGBA64
- type SorterFunc
- type ThresholdFunc
Constants ¶
View Source
const ThresholdScale = 100
Variables ¶
View Source
var SortTypes = []string{"MeanComp", "RedComp", "GreenComp", "BlueComp"}
View Source
var ThresholdTypes = []string{"LoThresholdColorMean", "HiThresholdColorMean", "OutThresholdColorMean", "InThresholdColorMean"}
Functions ¶
This section is empty.
Types ¶
type NewOpt ¶
type NewOpt func(*PixelSort)
func WithChunkLimit ¶
func WithDirection ¶
func WithInvert ¶
func WithSortFuncString ¶
func WithThreshold ¶
func WithThresholdFuncString ¶
type PixelSort ¶
type PixelSort struct { ThresholdFunc ThresholdFunc SorterFunc SorterFunc // contains filtered or unexported fields }
func (*PixelSort) HiThresholdColorMean ¶
Only colors above the threshold will sort
func (*PixelSort) InThresholdColorMean ¶
Only colors outside the range will sort
func (*PixelSort) LoThresholdColorMean ¶
Only colors below the threshold will sort
func (*PixelSort) OutThresholdColorMean ¶
Only colors inside the range will sort
type SorterFunc ¶
type ThresholdFunc ¶
Click to show internal directories.
Click to hide internal directories.