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::detail::tracking::tbm::CosDistance::CosDistance |
( |
const cv::Size & |
descriptor_size | ) |
|
|
explicit |
CosDistance constructor.
- Parameters
-
[in] | descriptor_size | Descriptor size. |
◆ compute() [1/2]
float cv::detail::tracking::tbm::CosDistance::compute |
( |
const cv::Mat & |
descr1, |
|
|
const cv::Mat & |
descr2 |
|
) |
| |
|
overridevirtual |
◆ compute() [2/2]
std::vector< float > cv::detail::tracking::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::detail::tracking::tbm::IDescriptorDistance.
The documentation for this class was generated from the following file: