blob: e86a47fb350d77434546b76c2c7c0f07ae761bfd [file] [log] [blame]
package imgmatching
// AlgorithmNameOptKey is the optional key used to indicate a non-exact matching algorithm.
const AlgorithmNameOptKey = "image_matching_algorithm"
// AlgorithmName is a non-exact image matching algorithm specified via the AlgorithmNameOptKey
// optional key, e.g. "fuzzy".
type AlgorithmName string
const (
ExactMatching = AlgorithmName("exact")
FuzzyMatching = AlgorithmName("fuzzy")
SobelFuzzyMatching = AlgorithmName("sobel")
)
// AlgorithmParamOptKey is an optional key indicating a parameter for the specified non-exact image
// matching algorithm, e.g. "fuzzy_max_different_pixels".
type AlgorithmParamOptKey string
const (
// MaxDifferentPixels is the optional key used to specify the MaxDifferentPixels parameter of
// algorithms FuzzyMatching and SobelFuzzyMatching.
MaxDifferentPixels = AlgorithmParamOptKey("fuzzy_max_different_pixels")
// PixelDeltaThreshold is the optional key used to specify the PixelDeltaThreshold parameter of
// algorithms FuzzyMatching and SobelFuzzyMatching.
PixelDeltaThreshold = AlgorithmParamOptKey("fuzzy_pixel_delta_threshold")
// IgnoredBorderThickness is the optional key used to specify the IgnoredBorderThickness
// parameter of algorithms FuzzyMatching and SobelFuzzyMatching.
IgnoredBorderThickness = AlgorithmParamOptKey("fuzzy_ignored_border_thickness")
// EdgeThreshold is the optional key used to specify the EdgeThreshold parameter of the
// SobelFuzzyMatching algorithm.
EdgeThreshold = AlgorithmParamOptKey("sobel_edge_threshold")
)