The IDescriptorDistance class declares an interface for distance computation between reidentification descriptors.
More...
#include <opencv2/tracking/tracking_by_matching.hpp>
The IDescriptorDistance class declares an interface for distance computation between reidentification descriptors.
◆ ~IDescriptorDistance()
virtual cv::tbm::IDescriptorDistance::~IDescriptorDistance |
( |
| ) |
|
|
inlinevirtual |
◆ compute() [1/2]
virtual float cv::tbm::IDescriptorDistance::compute |
( |
const cv::Mat & |
descr1, |
|
|
const cv::Mat & |
descr2 |
|
) |
| |
|
pure virtual |
◆ compute() [2/2]
virtual std::vector<float> cv::tbm::IDescriptorDistance::compute |
( |
const std::vector< cv::Mat > & |
descrs1, |
|
|
const std::vector< cv::Mat > & |
descrs2 |
|
) |
| |
|
pure virtual |
Computes distances between two descriptors in batches.
- Parameters
-
[in] | descrs1 | Batch of first descriptors. |
[in] | descrs2 | Batch of second descriptors. |
- Returns
- Distances between descriptors.
Implemented in cv::tbm::MatchTemplateDistance, and cv::tbm::CosDistance.
The documentation for this class was generated from the following file: