importClass(Packages.icy.imagej.ImageJUtil)
importClass(Packages.ij.IJ)
// Get the focused sequence, test if null or not.
seq = getSequence()
if (seq == null) throw "No sequence opened"
// Convert the sequence into an understanble object for ImageJ
imPlus = ImageJUtil.convertToImageJImage(seq, null)
// Run the IJ Plugin
IJ.run(imPlus, "Find Edges", "")
// notify Icy that the data changed
seq.dataChanged()