Documentation ¶
Overview ¶
Package imgcmp is a package for common code related to image comparisons.
Index ¶
- func CountBrighterPixels(baseImage, countImage image.Image) (int, error)
- func CountDiffPixels(imageA, imageB image.Image, threshold uint8) (int, error)
- func CountPixels(image image.Image, clr color.Color) int
- func CountPixelsWithDiff(image image.Image, clr color.Color, colorMaxDiff uint8) int
- func DumpImageToPNG(ctx context.Context, image *image.Image, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountBrighterPixels ¶
CountBrighterPixels takes two same size image, return how many pixels in countImage brighter than baseImage.
func CountDiffPixels ¶
CountDiffPixels takes two images of the same size, and returns how many pixels are different.
func CountPixels ¶
CountPixels returns how many pixels in the specified color are contained in image.
func CountPixelsWithDiff ¶
CountPixelsWithDiff returns how many pixels in the specified color are contained in image with max diff.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.