Documentation ¶
Index ¶
- Constants
- Variables
- func Blend(src0 *image.RGBA, src1 *image.RGBA, pt image.Point, mode BlendMode) (*image.RGBA, error)
- func Blockmozaic(img *image.RGBA, block int) (*image.RGBA, error)
- func Boxblur(img *image.RGBA, size uint8) (*image.RGBA, error)
- func Brightness(img *image.RGBA, factor float64) (*image.RGBA, error)
- func Canny(img *image.RGBA, thresholdMax, thresholdMin int) (*image.RGBA, error)
- func CannyWithDilate(img *image.RGBA, thresholdMax, thresholdMin int, dilateSize int) (*image.RGBA, error)
- func Clone(img *image.RGBA) (*image.RGBA, error)
- func Contour(img *image.RGBA, threshold uint8, size uint8) ([]image.Point, error)
- func Contrast(img *image.RGBA, factor float64) (*image.RGBA, error)
- func ConvertFrom(img *image.RGBA, model ColorModel) (*image.RGBA, error)
- func ConvertFromABGR(img *image.RGBA) (*image.RGBA, error)
- func ConvertFromARGB(img *image.RGBA) (*image.RGBA, error)
- func ConvertFromBGRA(img *image.RGBA) (*image.RGBA, error)
- func ConvertFromRABG(img *image.RGBA) (*image.RGBA, error)
- func ConvertFromYUV(img *image.YCbCr, chrs ChromaSubsampling) (*image.RGBA, error)
- func ConvertFromYUV420(img *image.YCbCr) (*image.RGBA, error)
- func ConvertFromYUV420Plane(y, u, v []byte, y_stride, u_stride, v_stride int, width, height int) (*image.RGBA, error)
- func ConvertFromYUV444(img *image.YCbCr) (*image.RGBA, error)
- func ConvertFromYUV444Plane(y, u, v []byte, y_stride, u_stride, v_stride int, width, height int) (*image.RGBA, error)
- func ConvertToYUV420(img *image.RGBA) (*image.YCbCr, error)
- func ConvertToYUV444(img *image.RGBA) (*image.YCbCr, error)
- func Crop(img *image.RGBA, pt image.Point, cropWidth, cropHeight int) (*image.RGBA, error)
- func Dilation(img *image.RGBA, size int) (*image.RGBA, error)
- func DisablePool()
- func Edge(img *image.RGBA) (*image.RGBA, error)
- func Emboss(img *image.RGBA) (*image.RGBA, error)
- func EnablePool()
- func Erosion(img *image.RGBA, size int) (*image.RGBA, error)
- func Flip(img *image.RGBA, mode FlipMode) (*image.RGBA, error)
- func FreePreparedNCCTemplate(ptpl *PreparedNCCTpl)
- func FreePreparedZNCCTemplate(ptpl *PreparedZNCCTpl)
- func Gamma(img *image.RGBA, factor float64) (*image.RGBA, error)
- func Gaussianblur(img *image.RGBA, sigma float64) (*image.RGBA, error)
- func GetByteBuf(size int) []byte
- func GetRGBA(width, height int) *image.RGBA
- func GetRGBAByteBuf(width, height int) []byte
- func Gradient(img *image.RGBA) (*image.RGBA, error)
- func Grayscale(img *image.RGBA) (*image.RGBA, error)
- func Highpass(img *image.RGBA) (*image.RGBA, error)
- func Invert(img *image.RGBA) (*image.RGBA, error)
- func Laplacian(img *image.RGBA) (*image.RGBA, error)
- func Morphology(img *image.RGBA, mode MorphologyMode, size int, count int) (*image.RGBA, error)
- func MorphologyCanny(img *image.RGBA, thresholdMax, thresholdMin int, mode CannyMorphologyMode, ...) (*image.RGBA, error)
- func MorphologyCannyWithDilate(img *image.RGBA, thresholdMax, thresholdMin int, mode CannyMorphologyMode, ...) (*image.RGBA, error)
- func NativePCM16Decibel(data []int16) float64
- func PCM16Decibel(data []byte, length int) (float32, error)
- func PCM16DecibelFromInt16(data []int16) (float32, error)
- func PutByteBuf(data []byte)
- func PutRGBA(img *image.RGBA)
- func PutRGBAByteBuf(data []byte)
- func Rotate(img *image.RGBA, mode RotationMode) (*image.RGBA, error)
- func Scale(img *image.RGBA, scaleWidth, scaleHeight int, mode ScaleFilter) (*image.RGBA, error)
- func Sobel(img *image.RGBA) (*image.RGBA, error)
- type BlendMode
- type CannyMorphologyMode
- type ChromaSubsampling
- type ColorModel
- type FlipMode
- type MatchTemplateFloatScore
- func MatchTemplateNCC(img *image.RGBA, tpl *image.RGBA, threshold float64) ([]MatchTemplateFloatScore, error)
- func MatchTemplateZNCC(img *image.RGBA, tpl *image.RGBA, threshold float64) ([]MatchTemplateFloatScore, error)
- func PreparedMatchTemplateNCC(img *image.RGBA, ptpl *PreparedNCCTpl, threshold float64) ([]MatchTemplateFloatScore, error)
- func PreparedMatchTemplateZNCC(img *image.RGBA, ptpl *PreparedZNCCTpl, threshold float64) ([]MatchTemplateFloatScore, error)
- type MatchTemplateIntScore
- type MorphologyMode
- type PreparedNCCTpl
- type PreparedZNCCTpl
- type RotationMode
- type ScaleFilter
Constants ¶
View Source
const ( AppName string = "blurry" Version string = "1.20.2" )
View Source
const (
RGBAStride int = 4
)
Variables ¶
View Source
var ( ErrConvertFromYUV = errors.New("convert_from cgo call error") ErrConvertToYUV = errors.New("convert_to cgo call error") ErrYUVSubsampleRateMustI420 = errors.New("image.YCbCr.SubsampleRatio must be 420") ErrYUVSubsampleRateMustI444 = errors.New("image.YCbCr.SubsampleRatio must be 444") )
View Source
var ( ErrMatchTemplateSAD = errors.New("match_template_sad cgo call error") ErrMatchTemplateSSD = errors.New("match_template_ssd cgo call error") ErrMatchTemplateNCC = errors.New("match_template_ncc cgo call error") ErrMatchTemplateZNCC = errors.New("match_template_zncc cgo call error") ErrCreatePrepareNCCTemplate = errors.New("create_prepare_ncc_template cgo call error") ErrPrepareNCCTemplate = errors.New("prepare_ncc_template cgo call error") ErrPreparedMatchTemplateNCC = errors.New("prepated_match_template_ncc cgo call error") ErrCreatePrepareZNCCTemplate = errors.New("create_prepare_zncc_template cgo call error") ErrPrepareZNCCTemplate = errors.New("prepare_zncc_template cgo call error") ErrPreparedMatchTemplateZNCC = errors.New("prepated_match_template_zncc cgo call error") )
View Source
var (
ErrBlend = errors.New("blend cgo call error")
)
View Source
var (
ErrBlockmozaic = errors.New("contrast cgo call error")
)
View Source
var (
ErrBoxblur = errors.New("boxblur cgo call error")
)
View Source
var (
ErrBrightness = errors.New("brightness cgo call error")
)
View Source
var (
ErrCanny = errors.New("canny cgo call error")
)
View Source
var (
ErrClone = errors.New("clone cgo call error")
)
View Source
var (
ErrContour = errors.New("contour cgo call error")
)
View Source
var (
ErrContrast = errors.New("contrast cgo call error")
)
View Source
var (
ErrConvertFromRGBA = errors.New("convert_from cgo call error")
)
View Source
var (
ErrCrop = errors.New("crop cgo call error")
)
View Source
var (
ErrDilation = errors.New("dilation cgo call error")
)
View Source
var (
ErrEdge = errors.New("edge cgo call error")
)
View Source
var (
ErrEmboss = errors.New("emboss cgo call error")
)
View Source
var (
ErrErosion = errors.New("erosion cgo call error")
)
View Source
var (
ErrFlip = errors.New("flip cgo call error")
)
View Source
var (
ErrGamma = errors.New("gamma cgo call error")
)
View Source
var (
ErrGaussianblur = errors.New("gaussianblur cgo call error")
)
View Source
var (
ErrGradient = errors.New("gradient cgo call error")
)
View Source
var (
ErrGrayscale = errors.New("grayscale cgo call error")
)
View Source
var (
ErrHighpass = errors.New("highpass cgo call error")
)
View Source
var (
ErrInvert = errors.New("invert cgo call error")
)
View Source
var (
ErrLaplacian = errors.New("laplacian cgo call error")
)
View Source
var (
ErrMorphology = errors.New("morphology cgo call error")
)
View Source
var (
ErrPCM16Decibel = errors.New("pcm16_decibel cgo call error")
)
View Source
var (
ErrRotate = errors.New("rotate cgo call error")
)
View Source
var (
ErrScale = errors.New("scale cgo call error")
)
View Source
var (
ErrSobel = errors.New("sobel cgo call error")
)
Functions ¶
func Blockmozaic ¶ added in v1.1.0
func CannyWithDilate ¶ added in v1.9.0
func ConvertFrom ¶ added in v1.17.0
func ConvertFromYUV ¶ added in v1.17.0
func ConvertFromYUV420 ¶ added in v1.17.0
func ConvertFromYUV420Plane ¶ added in v1.17.0
func ConvertFromYUV444 ¶ added in v1.17.0
func ConvertFromYUV444Plane ¶ added in v1.17.0
func DisablePool ¶
func DisablePool()
func EnablePool ¶
func EnablePool()
func FreePreparedNCCTemplate ¶ added in v1.14.0
func FreePreparedNCCTemplate(ptpl *PreparedNCCTpl)
func FreePreparedZNCCTemplate ¶ added in v1.15.0
func FreePreparedZNCCTemplate(ptpl *PreparedZNCCTpl)
func GetByteBuf ¶ added in v1.2.0
func GetRGBAByteBuf ¶ added in v1.12.0
func Morphology ¶ added in v1.10.0
func MorphologyCanny ¶ added in v1.10.0
func MorphologyCannyWithDilate ¶ added in v1.10.0
func NativePCM16Decibel ¶ added in v1.20.0
func PCM16DecibelFromInt16 ¶ added in v1.20.0
func PutByteBuf ¶ added in v1.2.0
func PutByteBuf(data []byte)
func PutRGBAByteBuf ¶ added in v1.12.0
func PutRGBAByteBuf(data []byte)
Types ¶
type CannyMorphologyMode ¶ added in v1.10.0
type CannyMorphologyMode uint8
const ( CannyMorphologyNone CannyMorphologyMode = iota CannyMorphologyOpen CannyMorphologyClose )
type ChromaSubsampling ¶ added in v1.17.0
type ChromaSubsampling uint8
const ( ChromaSubsampling420 ChromaSubsampling = iota + 1 ChromaSubsampling444 )
type ColorModel ¶ added in v1.17.0
type ColorModel uint8
const ( ColorModelARGB ColorModel = iota + 1 ColorModelABGR ColorModelBGRA ColorModelRABG )
type MatchTemplateFloatScore ¶ added in v1.13.0
func MatchTemplateNCC ¶ added in v1.13.0
func MatchTemplateZNCC ¶ added in v1.14.0
func PreparedMatchTemplateNCC ¶ added in v1.14.0
func PreparedMatchTemplateNCC(img *image.RGBA, ptpl *PreparedNCCTpl, threshold float64) ([]MatchTemplateFloatScore, error)
func PreparedMatchTemplateZNCC ¶ added in v1.15.0
func PreparedMatchTemplateZNCC(img *image.RGBA, ptpl *PreparedZNCCTpl, threshold float64) ([]MatchTemplateFloatScore, error)
type MatchTemplateIntScore ¶ added in v1.13.0
func MatchTemplateSAD ¶ added in v1.12.0
func MatchTemplateSSD ¶ added in v1.12.0
type MorphologyMode ¶ added in v1.10.0
type MorphologyMode uint8
const ( MorphologyOpen MorphologyMode = iota + 1 MorphologyClose MorphologyGradient )
type PreparedNCCTpl ¶ added in v1.14.0
type PreparedNCCTpl struct {
// contains filtered or unexported fields
}
func PrepareNCCTemplate ¶ added in v1.14.0
func PrepareNCCTemplate(tpl *image.RGBA) (*PreparedNCCTpl, error)
type PreparedZNCCTpl ¶ added in v1.15.0
type PreparedZNCCTpl struct {
// contains filtered or unexported fields
}
func PrepareZNCCTemplate ¶ added in v1.15.0
func PrepareZNCCTemplate(tpl *image.RGBA) (*PreparedZNCCTpl, error)
type RotationMode ¶ added in v1.5.0
type RotationMode int16
const ( Rotate0 RotationMode = 0 // No rotation Rotate90 RotationMode = 90 // Rotate 90 degrees clockwise Rotate180 RotationMode = 180 // Rotate 180 degrees Rotate270 RotationMode = 270 // Rotate 270 degrees clockwise )
type ScaleFilter ¶ added in v1.18.0
type ScaleFilter uint8
const ( ScaleFilterNone ScaleFilter = iota ScaleFilterBox ScaleFilterLinear ScaleFilterGaussian )
Source Files ¶
- blend.go
- blockmozaic.go
- blurry.go
- boxblur.go
- brightness.go
- canny.go
- clone.go
- contour.go
- contrast.go
- convert.go
- convert_yuv.go
- crop.go
- dilation.go
- edge.go
- emboss.go
- erosion.go
- flip.go
- gamma.go
- gaussianblur.go
- gradient.go
- grayscale.go
- highpass.go
- invert.go
- laplacian.go
- morphology.go
- mt.go
- pcm16.go
- rotate.go
- scale.go
- sobel.go
- version.go
Click to show internal directories.
Click to hide internal directories.