use dijkstra algorithm to segment images
8 次查看(过去 30 天)
显示 更早的评论
I would like to use graph cut to segment hundreds of large images using Dijkstra's algorithm, in a fully automated fashion,and using custom weights, so the MATLAB function grabcut is not suitable. Using the Image Segmenter App is also not an option. Segmentation must be fully automated, and I already know how to specify the endpoints.
What I am struggling is in constructing the adjacency array in an efficient manner and the best way to efficienlty fill the sparse matrix.
Does anyone know an efficient implementation of this algorithm? Everything I have seen online is for small images, does not involve sparse matrices, and so does not seem efficient at all. I have also seen FEX implementations of Dijkstra's algorithm, but I am not sure if they work with sparse matrices or large arrays.
2 个评论
Walter Roberson
2024-12-18
It is not clear to me exactly what is sparse? Are the images themselves somehow sparse?
I am having difficulty figuring out how Dijkstra's algorithm fits into the situation. It sounds as if bwdistgeodesic would be more suitable.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dijkstra algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
