1
A
回答
0
怎么样在this链接的伪代码。
它是这样的:
for each row in image left to right
for each column in image top to bottom
if(pixel is in region){
set pixel to 1 + minimum value of the north east neighbours
}else{
set pixel to zero
}
}
}
for each row right to left
for each column bottom to top
if(pixel is in region){
set pixel to min(value of the pixel,1 + minimum value of the south west neighbours)
}else{
set pixel to zero
}
}
}
1
的区别是什么在距离变换?有一个叫cv::distanceTransform的功能,也许可以帮助你。
0
所以这是我目前用于BLOB提取的草火的修改版本。它需要数字化(图像已被修改,使所有值都是1或0),并返回最大的边界框向量。代码相当长,但在src/cvLib.cpp文件中的https://github.com/bstadt/JHU-Robotics-compVis的公开回购库中。另外请注意,边界框是我自己写的一个类,所以你也需要这个类。它的源代码位于src文件夹中,头文件位于include目录中,因此一定要抓住这两者。
相关问题
- 1. C#中的置换算法
- 2. C#中的Dijsktra算法#
- 3. C++中的Bron Kerbosch算法
- 4. C中的旋转算法?
- 5. C++中的foreach算法
- 6. C#中的计算方法
- 7. C#中的ARIMA算法#
- 8. C#中的组合算法
- 9. Kruskal的C++算法
- 10. URL Slugify算法在C#中?
- 11. Dijkstra算法C
- 12. Diff算法C++
- 13. C++ NTL算法
- 14. C/C++矩阵算法
- 15. 对象c中的SQL“group by”算法?
- 16. 如何加速C++中的CYK算法?
- 17. 在C++中的迷宫求解算法
- 18. C++中的框过滤算法
- 19. C#中的任务管理算法
- 20. C++中的遗传算法优化
- 21. 绘制线C++的中点算法
- 22. C#中的双解析算法#
- 23. C++中的Word Hunting Game算法
- 24. c代码中算法的能耗
- 25. 关于C++中的make_heap算法
- 26. c语言中的多语句算法
- 27. C中的路径查找算法
- 28. C中的三重DES算法?
- 29. C++算法模数
- 30. Runge-Kutta算法C++