Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BurntSushi/graphics-go
/ functions
Functions
95 in github.com/BurntSushi/graphics-go
⨍
Functions
95
◇
Types & classes
26
↓ 16 callers
Method
RGBA
RGBA interpolates (x, y).
graphics/interp/interp.go:22
↓ 9 callers
Method
at
(x, y int)
graphics/detect/integral.go:23
↓ 9 callers
Method
classify
(w *window)
graphics/detect/detect.go:125
↓ 8 callers
Function
clamp
clamp clamps x to the range [x0, x1].
graphics/convolve/convolve.go:16
↓ 8 callers
Method
sum
(b image.Rectangle)
graphics/detect/integral.go:27
↓ 6 callers
Method
Mul
Mul returns the multiplication of two affine transform matrices.
graphics/affine.go:27
↓ 5 callers
Function
Scale
Scale produces a scaled version of the image using bilinear interpolation.
graphics/scale.go:15
↓ 5 callers
Function
newIntegrals
newIntegrals returns the integral and the squared integral.
graphics/detect/integral.go:63
↓ 4 callers
Function
Blur
Blur produces a blurred version of the image, using a Gaussian blur.
graphics/blur.go:27
↓ 4 callers
Function
Convolve
Convolve produces dst by applying the convolution kernel k to src.
graphics/convolve/convolve.go:248
↓ 4 callers
Function
Rotate
Rotate produces a rotated version of src, drawn onto dst.
graphics/rotate.go:21
↓ 4 callers
Method
Translate
Translate produces a translation transform with pixel distances x and y.
graphics/affine.go:152
↓ 4 callers
Function
delta
(u0, u1 uint32)
graphics/graphicstest/graphicstest.go:27
↓ 4 callers
Function
newProjector
newProjector creates a Projector with source src and target dst.
graphics/detect/projector.go:22
↓ 4 callers
Method
newSrc
()
graphics/interp/bilinear_test.go:21
↓ 4 callers
Function
newWindow
(m image.Image)
graphics/detect/detect.go:84
↓ 4 callers
Function
offGray
(src *image.Gray, x, y int)
graphics/interp/bilinear.go:204
↓ 4 callers
Function
offRGBA
TODO(crawshaw): When we have inlining, consider func (p *RGBA) Off(x, y) int
graphics/interp/bilinear.go:201
↓ 3 callers
Function
benchBlur
(b *testing.B, bounds image.Rectangle)
graphics/blur_test.go:172
↓ 3 callers
Function
checkTransformTest
(t *testing.T, oc *transformOneColorTest, dst *image.RGBA)
graphics/shared_test.go:48
↓ 3 callers
Function
findLinearSrc
(b image.Rectangle, sx, sy float64)
graphics/interp/bilinear.go:129
↓ 3 callers
Method
newDst
()
graphics/shared_test.go:44
↓ 2 callers
Method
Interp
Interp interpolates (x, y).
graphics/interp/interp.go:15
↓ 2 callers
Function
Thumbnail
Thumbnail scales and crops src so it fits in dst.
graphics/thumbnail.go:13
↓ 2 callers
Method
Transform
Transform applies the affine transform to src and produces dst.
graphics/affine.go:61
↓ 2 callers
Function
bilinearGeneral
(src image.Image, x, y float64)
graphics/interp/bilinear.go:25
↓ 2 callers
Function
clamp
clamp rounds and clamps o to the integer range [x0, x1].
graphics/detect/projector.go:46
↓ 2 callers
Function
inBounds
(b image.Rectangle, x, y float64)
graphics/affine.go:90
↓ 2 callers
Method
init
()
graphics/detect/detect.go:74
↓ 2 callers
Method
integrate
()
graphics/detect/integral.go:43
↓ 2 callers
Function
kernelSize
(w []float64)
graphics/convolve/convolve.go:60
↓ 2 callers
Method
pt
(x0, y0 int)
graphics/affine.go:100
↓ 2 callers
Method
pt
pt projects p from the source rectangle onto the target rectangle.
graphics/detect/projector.go:33
↓ 2 callers
Method
rect
rect projects r from the source rectangle onto the target rectangle.
graphics/detect/projector.go:41
↓ 2 callers
Function
sprintBox
(box []byte, width, height int)
graphics/detect/integral_test.go:55
↓ 1 callers
Method
CenterFit
CenterFit produces the affine transform, centered around the rectangles. It is equivalent to I.Translate(-<center of src>).Mul(a).Translate(<center of
graphics/affine.go:168
↓ 1 callers
Function
NewKernel
NewKernel returns a square convolution kernel.
graphics/convolve/convolve.go:72
↓ 1 callers
Function
ParseOpenCV
ParseOpenCV produces a detection Cascade from an OpenCV XML file.
graphics/detect/opencv_parser.go:110
↓ 1 callers
Method
RGBA
(src *image.RGBA, x, y float64)
graphics/interp/bilinear.go:62
↓ 1 callers
Method
Rotate
Rotate produces a clockwise rotation transform of angle, in radians.
graphics/affine.go:132
↓ 1 callers
Method
Scale
Scale produces a scaling transform of factors x and y.
graphics/affine.go:123
↓ 1 callers
Function
SprintBox
SprintBox pretty prints the array as a hexidecimal matrix.
graphics/graphicstest/graphicstest.go:67
↓ 1 callers
Method
TransformCenter
TransformCenter applies the affine transform to src and produces dst. Equivalent to a.CenterFit(dst, src).Transform(dst, src, i).
graphics/affine.go:111
↓ 1 callers
Method
Weights
Weights returns the square matrix of weights in row major order.
graphics/convolve/convolve.go:29
↓ 1 callers
Method
Weights
()
graphics/convolve/convolve.go:44
↓ 1 callers
Function
buildCascade
(s *opencv_storage)
graphics/detect/opencv_parser.go:55
↓ 1 callers
Function
buildFeature
(r string)
graphics/detect/opencv_parser.go:43
↓ 1 callers
Function
convolveRGBA
(dst *image.RGBA, src image.Image, k Kernel)
graphics/convolve/convolve.go:196
↓ 1 callers
Function
convolveRGBASep
(dst *image.RGBA, src image.Image, k *SeparableKernel)
graphics/convolve/convolve.go:79
↓ 1 callers
Method
subWindow
(r image.Rectangle)
graphics/detect/detect.go:95
↓ 1 callers
Method
transformRGBA
(dst *image.RGBA, src *image.RGBA, i interp.RGBA)
graphics/affine.go:41
↓ 1 callers
Function
withinTolerance
(c0, c1 color.Color, tol int)
graphics/graphicstest/graphicstest.go:35
Function
BenchmarkBlur400x1600x3
Exactly twice the pixel count of 400x800
graphics/blur_test.go:205
Function
BenchmarkBlur400x400x3
(b *testing.B)
graphics/blur_test.go:195
Function
BenchmarkBlur400x800x3
Exactly twice the pixel count of 400x400.
graphics/blur_test.go:200
Method
Center
Center produces the affine transform, centered around the provided point.
graphics/affine.go:161
Method
Find
Find returns a set of areas of m that match the feature cascade c.
graphics/detect/detect.go:44
Method
Gray
Gray interpolates (x, y).
graphics/interp/interp.go:28
Method
Gray
(src *image.Gray, x, y float64)
graphics/interp/bilinear.go:101
Function
ImageWithinTolerance
ImageWithinTolerance checks that each pixel varies by no more than tol.
graphics/graphicstest/graphicstest.go:46
Method
Interp
(src image.Image, x, y float64)
graphics/interp/bilinear.go:18
Function
LoadImage
LoadImage decodes an image from a file.
graphics/graphicstest/graphicstest.go:17
Function
MakeRGBA
MakeRGBA returns an image with R, G, B taken from src.
graphics/graphicstest/graphicstest.go:96
Method
Match
Match returns true if the full image is classified as an object.
graphics/detect/detect.go:39
Method
Shear
Shear produces a shear transform by the slopes x and y.
graphics/affine.go:142
Function
SprintImageR
SprintImageR pretty prints the red channel of src. It looks like SprintBox.
graphics/graphicstest/graphicstest.go:81
Function
TestBilinearRGBA
(t *testing.T)
graphics/interp/bilinear_test.go:83
Function
TestBilinearSubImage
(t *testing.T)
graphics/interp/bilinear_test.go:116
Function
TestBlurEmpty
(t *testing.T)
graphics/blur_test.go:144
Function
TestBlurGopher
(t *testing.T)
graphics/blur_test.go:151
Function
TestBlurOneColor
(t *testing.T)
graphics/blur_test.go:129
Function
TestClassifier
(t *testing.T)
graphics/detect/detect_test.go:41
Function
TestClassifierScale
(t *testing.T)
graphics/detect/detect_test.go:60
Function
TestConvolve
(t *testing.T)
graphics/convolve/convolve_test.go:32
Function
TestConvolveEmpty
(t *testing.T)
graphics/convolve/convolve_test.go:73
Function
TestConvolveNil
(t *testing.T)
graphics/convolve/convolve_test.go:67
Function
TestIntegral
(t *testing.T)
graphics/detect/integral_test.go:68
Function
TestIntegralSubImage
(t *testing.T)
graphics/detect/integral_test.go:127
Function
TestIntegralSum
(t *testing.T)
graphics/detect/integral_test.go:89
Function
TestParseOpenCV
(t *testing.T)
graphics/detect/opencv_parser_test.go:57
Function
TestProjector
(t *testing.T)
graphics/detect/projector_test.go:41
Function
TestRotateEmpty
(t *testing.T)
graphics/rotate_test.go:120
Function
TestRotateGopherPartial
(t *testing.T)
graphics/rotate_test.go:149
Function
TestRotateGopherSide
(t *testing.T)
graphics/rotate_test.go:127
Function
TestRotateOneColor
(t *testing.T)
graphics/rotate_test.go:105
Function
TestScaleEmpty
(t *testing.T)
graphics/scale_test.go:107
Function
TestScaleGopher
(t *testing.T)
graphics/scale_test.go:114
Function
TestScaleOneColor
(t *testing.T)
graphics/scale_test.go:92
Function
TestSeparableWeights
(t *testing.T)
graphics/convolve/convolve_test.go:16
Function
TestThumbnailGopher
(t *testing.T)
graphics/thumbnail_test.go:15
Function
TestThumbnailLongGopher
(t *testing.T)
graphics/thumbnail_test.go:35
Method
Weights
()
graphics/convolve/convolve.go:58
Method
classify
(w *window, pr *projector)
graphics/detect/detect.go:105
Method
classify
(w *window, pr *projector)
graphics/detect/detect.go:117
Method
newSrc
()
graphics/shared_test.go:26