Description: distance from the algorithm will be two very good value for the image transform the gray level for the follow-up watershed algorithm used to prepare. And attached a detailed description and code examples.
File list (Check if you may need any files):