The code works just fine. I will work on it further.
Thanks for all the help.
From: ImageJ Interest Group <[hidden email]> On Behalf Of Straatman, Kees (Dr.)
Sent: Tuesday, April 9, 2019 3:10 AM
To: [hidden email] Subject: Re: How to perform watershed on this image
The below macro code is doing more or less what you want on the image you submitted. No idea if it will work on other images you have but give it a go
The information in this e-mail may be privileged and confidential, intended only for the use of the addressee(s) above. Any unauthorized use or disclosure of this information is prohibited. If you have received this e-mail by mistake, please delete it and immediately contact the sender.