資源簡介
根據面積判斷兩個輪廓是否可能是一對
代碼片段和文件信息
//輸入一對contour和shape,根據面積判斷它倆有沒有可能是一對
int?AreaMatch(vector&?contour?vector&?shape)
{
double?dCntrArea?=?contourArea(contour); //計算contour面積
double?dShapeArea?=?contourArea(shape); //計算shape面積
double?dLowerLimit?=?dShapeArea
- 上一篇:Opencv3中SIFT算法詳解
- 下一篇:《實用數字圖像處理與分析(2版)》源代碼
評論
共有 條評論