Aircraft Detection 1.0
Loading...
Searching...
No Matches
template_matching.h File Reference
#include <opencv2/opencv.hpp>
#include <vector>

Go to the source code of this file.

Functions

std::vector< cv::Point > templateMatching (const cv::Mat &src_img)
 Performs template matching on a source image using pre-loaded average planes.
 

Function Documentation

◆ templateMatching()

std::vector< cv::Point > templateMatching ( const cv::Mat & src_img)

Performs template matching on a source image using pre-loaded average planes.

This function loads a set of average planes and performs multi-threaded template matching on the source image. It returns the coordinates of all matched points found in the image.

Parameters
[in]src_imgThe source image in which to perform template matching.
Returns
A vector of cv::Point objects representing the coordinates of all matched points.
Note
The function uses loadAvgPlanes to load the average planes from the predefined directory.
The function uses matchTemplateMultiThreaded to perform multi-threaded template matching.
See also
loadAvgPlanes
matchTemplateMultiThreaded