![]() Simd Library Documentation.Home | Release Notes | Download | Documentation | Forum | SourceForge | GitHub | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageMatcher< Tag, Allocator > Struct Template Reference The ImageMatcher structure provides fast algorithm of searching of similar images. More...
Detailed Descriptiontemplate<class Tag, template< class > class Allocator>
|
typedef Simd::View<Allocator> View |
An image type definition.
bool Empty | ( | ) | const |
Signalizes true if ImageMatcher is initialized.
size_t Size | ( | ) | const |
Gets total number of images added to ImageMatcher.
bool Init | ( | double | threshold = 0.05 , |
HashType | type = Hash16x16 , |
||
size_t | number = 0 , |
||
bool | normalized = false |
||
) |
Initializes ImageMatcher for search.
[in] | threshold | - a maximal mean squared difference for similar images. By default it is equal to 0.05. |
[in] | type | - a type of Hash used for matching. By default it is equal to ImageMatcher::Hash16x16. |
[in] | number | - an estimated total number of images used for matching. By default it is equal to 0. |
[in] | normalized | - a flag signalized that images have normalized histogram. By default it is false. |
Creates hash for given image.
[in] | view | - an input image. |
[in] | tag | - a tag of arbitrary type. |
Finds all similar images earlier added to ImageMatcher for given image.
[in] | hash | - a smart pointer to hash of the image. |
[out] | results | - a list of found similar images. |
void Add | ( | const HashPtr & | hash | ) |
Adds given image to ImageMatcher.
[in] | hash | - a smart pointer to hash of the image. |
void Skip | ( | const HashPtr & | hash | ) |
Skips searching of the image in ImageMatcher.
[in] | hash | - a smart pointer to hash of the image. |