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++中的Ukkonen算法
- 3. C#中的計算方法
- 4. C中的旋轉算法?
- 5. C++中的Bron Kerbosch算法
- 6. c中的Dijkstras算法#
- 7. C#中的Dijsktra算法#
- 8. C#中的置換算法
- 9. C++中的foreach算法
- 10. c中的複數運算算法
- 11. Kruskal的C++算法
- 12. Prim的算法C++
- 13. URL Slugify算法在C#中?
- 14. Diff算法C++
- 15. C++ NTL算法
- 16. Dijkstra算法C
- 17. C/C++矩陣算法
- 18. 如何加速C++中的CYK算法?
- 19. C++中的遺傳算法優化
- 20. C中的三重DES算法?
- 21. C++中的數獨檢查器算法
- 22. c代碼中算法的能耗
- 23. C私鑰中的RSA算法
- 24. 關於C++中的make_heap算法
- 25. C++中的分流碼算法
- 26. C++中的Word Hunting Game算法
- 27. vb6和c#中的AES加密算法#
- 28. c中的線性遞增算法#
- 29. C#中的雙解析算法#
- 30. C中的路徑查找算法