This is another simple script for edges detection. I like like it much more than standart edge detection scripts, because in case of photo processing it gives results more close to real ones.
After installation, script will be at Scripts/Leon/Morphology edges detection
I'm attached here an example: sources picture and results of Sobel and Morphology edge detection. Each edges are processed: colors inverted, Color-Levels-Auto.