The CosDistance class allows computing cosine distance between two reidentification descriptors.
More...
#include <opencv2/tracking/tracking_by_matching.hpp>
The CosDistance class allows computing cosine distance between two reidentification descriptors.
◆ CosDistance()
cv::tbm::CosDistance::CosDistance |
( |
const cv::Size & |
descriptor_size | ) |
|
|
explicit |
CosDistance constructor.
- Parameters
-
[in] | descriptor_size | Descriptor size. |
◆ compute() [1/2]
float cv::tbm::CosDistance::compute |
( |
const cv::Mat & |
descr1, |
|
|
const cv::Mat & |
descr2 |
|
) |
| |
|
overridevirtual |
Computes distance between two descriptors.
- Parameters
-
descr1 | First descriptor. |
descr2 | Second descriptor. |
- Returns
- Distance between two descriptors.
Implements cv::tbm::IDescriptorDistance.
◆ compute() [2/2]
std::vector<float> cv::tbm::CosDistance::compute |
( |
const std::vector< cv::Mat > & |
descrs1, |
|
|
const std::vector< cv::Mat > & |
descrs2 |
|
) |
| |
|
overridevirtual |
Computes distances between two descriptors in batches.
- Parameters
-
[in] | descrs1 | Batch of first descriptors. |
[in] | descrs2 | Batch of second descriptors. |
- Returns
- Distances between descriptors.
Implements cv::tbm::IDescriptorDistance.
The documentation for this class was generated from the following file: