之前保存分割区域特征值,结果看全部区域都保存了,很没必要,只需要把最终区域保存下来就行了,

在这里用了一个vector保存区域ID,然后对整张图进行循环查找判断

伪代码:

for i[0,hight]

for j[0,width]

vector vcr;

get curRegionID;

if vcr.find(curRegionID) == false

 vcr.pushback(curRegionID);

  save curRegion feature;

经调试正确。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2021-08-11
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案