RLL Computer Vision Code
1.0
江苏科技大学HLL战队机器视觉代码
|
armour_detector.h
浏览该文件的文档.
73 void drawBlocks(Mat srcImage, const vector<RotatedRect>& minRotatedRects, const Scalar& color) const;
155 void markArmourBlocks(const Mat& srcImage, const Mat& dstImage, const vector<RotatedRect>& armourBlocks);
OptimalArmourBlock(const RotatedRect &_block, const double &_grade)
初始化参数
Definition: armour_detector.h:103
void cutEdgeOfRect(Point2f *points)
减去旋转矩形的边角,使旋转矩形的左右两条边与竖直方向平行,成为平行四边形
Definition: armour_detector.cpp:283
void markArmourBlocks(const Mat &srcImage, const Mat &dstImage, const vector< RotatedRect > &armourBlocks)
对最后提取出的灯柱区域评分,选出最优区域
Definition: armour_detector.cpp:237
struct HCVC::ArmourDetector::Params params
float minHeightWidthRat
Definition: armour_detector.h:81
void drawBlocks(Mat srcImage, const vector< RotatedRect > &minRotatedRects, const Scalar &color) const
在原图像上画出旋转矩形,便于调试
Definition: armour_detector.cpp:74
vector< RotatedRect > calcBlocksInfo(const vector< vector< Point > > &blocks)
计算每一个团块的信息,并进行初步的筛选即去除掉一些不符合条件的团块
Definition: armour_detector.cpp:161
void fillLampBlock(Mat &srcImage, vector< vector< Point > > &blocks, int row, int col)
用广度优先搜索填充每一个连通块
Definition: armour_detector.cpp:92
float maxHeightWidthRat
Definition: armour_detector.h:80
vector< OptimalArmourBlock > optimalArmourBlocks
Definition: armour_detector.h:115
vector< RotatedRect > extracArmourBlocks(const vector< RotatedRect > &minRotatedRects)
进一步筛选,匹配团块即灯柱对,提取出最优目标
Definition: armour_detector.cpp:184
制作者 1.8.13