Well, I've never heard of the watershed algorithm before, but from the searches I did, it looks relatively interesting. Like addy86, I didn't find anything immediate. However, I did find one guy. He offers some C and C++ implementation code. The page I found is here
. From the page:
All code has been developed and tested on Linux only! Porting the code to Win-dow-s is certainly possible, but maybe non-trivial.
The code is currently available by e-mail only
Also, the title of the page indicates this is an "optimized rainfalling watershed algorithm" and on this related page
see http://telin.UGent.be/ipi/watershed/ for some segmentation examples, etc.
It is very important to note that the results shown there were obtained by pre-processing the watershed input activity image; non-linear scale space diffusion techniques were used to reduce the oversegmentation. The results shown can not be obtained without this technique (i.e. the raw watershed algorithm as made available here, will not deliver the same results).
So I have no clue whether this will meet what you need. It's been my experience that thesis writers seem to be paid by the number of words in the paper's title. Maybe it's necessary to fully disclose the topic, but it sure doesn't help the common (i.e. non-doctoral degree holder) reader identify what material relates to what they are looking for.
Anyway, I hope that helps.