blob: 61ae99ccd424f876d4ac5950f6c42ff4bab1f770 [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")
// EdgeThreshold is the optional key used to specify the EdgeThreshold parameter of the
// SobelFuzzyMatching algorithm.
EdgeThreshold = AlgorithmParamOptKey("sobel_edge_threshold")
)