Watershed using c# or c++
-
04-03-2021 - |
Question
I am trying to convert the Matlab function watershed
into C# or C++.
I tried to use this code but CvFindContours
returns NULL
with this image.
I also tried to use this implementation but I had issues with FilterGrayToGray
.
Does anyone knows how I can solve my problems or how I can calculate watershed on my image? Can someone explain me more precisely meyers flood algorithm for watershed?
OTHER TIPS
Although I think the solution given (OpenCV like) is good, you could also search for a different implementation of watershed. Search for Luc Vincent and Pierre Soille "Watersheds in Digital spaces: an efficient algorithm based on immersion simulations".
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow