Watershed using c# or c++
Iam trying to convert Matlab function watershed into c#. I tried to use [this code](http://pastebin.com/KXnJ5XkP) but CvFindContours returns NULL with [this image](http://imageshack.us/photo/my-images/259/normalnx.jpg/). I also tried to use this implementation:http://weblogs.sqlteam.com/mladenp/archive/2008/02/11/Watershed-Image-Segmentation-in-C.aspx but I had issues with FilterGrayToGray. Does anyone knows how I can solve my problems or how I can calculate watershed on my image?
Watershed using c# or c++
===

Iam trying to convert Matlab function watershed into c#. I tried to use [this code](http://pastebin.com/KXnJ5XkP) but CvFindContours returns NULL with [this image](http://imageshack.us/photo/my-images/259/normalnx.jpg/). I also tried to use this implementation:http://weblogs.sqlteam.com/mladenp/archive/2008/02/11/Watershed-Image-Segmentation-in-C.aspx but I had issues with FilterGrayToGray. Does anyone knows how I can solve my problems or how I can calculate watershed on my image?