Documentation
¶
Overview ¶
Package imagecheck provides deterministic, host-side encoded image inspection without external dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CropError ¶
type CropError struct {
Crop image.Rectangle
ExpectedBounds image.Rectangle
ActualBounds image.Rectangle
Reason string
}
CropError reports an empty crop or one not fully contained in both images.
type DecodeError ¶
DecodeError reports that one encoded input could not be decoded.
func (*DecodeError) Error ¶
func (err *DecodeError) Error() string
func (*DecodeError) Unwrap ¶
func (err *DecodeError) Unwrap() error
type DimensionMismatchError ¶
DimensionMismatchError reports unequal effective dimensions after applying the optional crop.
func (*DimensionMismatchError) Error ¶
func (err *DimensionMismatchError) Error() string
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result is an immutable pixel-inspection value. Its state is exposed only through value-returning accessors.
func (Result) DifferenceRatio ¶
DifferenceRatio returns DifferentPixels divided by TotalPixels.
func (Result) DifferentPixels ¶
DifferentPixels returns the exact number of unequal normalized RGBA pixels.
func (Result) TotalPixels ¶
TotalPixels returns the exact number of evaluated pixels.
type ThresholdError ¶
type ThresholdError struct {
Threshold float64
}
ThresholdError reports a non-finite or out-of-range inspection threshold.
func (*ThresholdError) Error ¶
func (err *ThresholdError) Error() string