RLL Computer Vision Code: code/armour_tracker.h 源文件

RLL Computer Vision

RLL Computer Vision Code  1.0
江苏科技大学HLL战队机器视觉代码
armour_tracker.h
浏览该文件的文档.
1 /*****************************************************************************
2 * HLL Computer Vision Code *
3 * Copyright (C) 2017 HLL [email protected]. *
4 * *
5 * This file is part of HCVC. *
6 * *
7 * @file armour_tracker.h *
8 * @brief Track the armour zone *
9 * Details. *
10 * *
11 * @author HLL *
12 * @email [email protected] *
13 * @version 1.0.0.0 *
14 * @date 2017.11.10 *
15 * *
16 *----------------------------------------------------------------------------*
17 * Remark : Description *
18 *----------------------------------------------------------------------------*
19 * Change History : *
20 * <Date> | <Version> | <Author> | <Description> *
21 *----------------------------------------------------------------------------*
22 * 2017/11/10 | 1.0.0.0 | Zhu Min | Create file *
23 *----------------------------------------------------------------------------*
24 * *
25 *****************************************************************************/
26 
27 #ifndef ARMOUR_TRACKER_H
28 #define ARMOUR_TRACKER_H
29 
30 #include "image_preprocessor.h"
31 
32 namespace HCVC {
35 
41 {
42 public:
47  ArmourTracker();
48 
55  void init(const Mat& srcImage, Rect2d armourBlock);
56 
62  bool track(Mat srcImage);
63 
64 private:
66  Ptr<TrackerKCF> tracker;
67 
76  static void sobelExtractor(const Mat img, const Rect roi, Mat& feat);
77 };
79 }
80 #endif // ARMOUR_TRACKER_H
ArmourTracker()
初始化
HLL Computer Vision Code namepace.
static void sobelExtractor(const Mat img, const Rect roi, Mat &feat)
sobel特征提取器
void init(const Mat &srcImage, Rect2d armourBlock)
创建图像追踪器并设定参数
bool track(Mat srcImage)
追踪目标区域
Ptr< TrackerKCF > tracker
kcf匹配算法图像追踪器
装甲板追踪模块
制作者   doxygen 1.8.13