Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub
ImageMatcher< Tag, Allocator >::Result Struct Reference

The Result structure is one match of the current image against images earlier added to ImageMatcher. More...

#include <SimdImageMatcher.hpp>

Public Member Functions

 Result (const Hash *h, double d)
 

Data Fields

const Hash * hash
 
const double difference
 

Detailed Description

template<class Tag, template< class > class Allocator>
struct Simd::ImageMatcher< Tag, Allocator >::Result

The Result structure is one match of the current image against images earlier added to ImageMatcher.

Find() fills a Results vector. Typical usage reads hash->tag (the source index stored in Create) and difference (printed as a percentage: difference * 100).

Constructor & Destructor Documentation

◆ Result()

Result ( const Hash *  h,
double  d 
)

Creates a new Result structure.

Find() constructs Result for every similar image that passes the threshold.

Parameters
[in]h- a pointer to the Hash of the found similar image.
[in]d- a normalized root-mean-square difference (range [0, 1]).

Field Documentation

◆ hash

const Hash* hash

A pointer to the Hash of the found similar image. Typical usage reads hash->tag.

◆ difference

const double difference

Normalized root-mean-square difference of the reduced images (range [0, 1]). Typical usage prints difference * 100 as a percent.