Detect edges using imput image
Source code name: "image_edge1.py"
Programming language: Python
Topic: Images/Manipulation
DMelt Version 1.4. Last modified: 12/20/1970. License: Free
https://datamelt.org/code/cache/image_edge1_3402.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from ij import *
from ij.process import *
from ij.measure import *
from ij.gui import *
from javax.imageio import ImageIO
from java.io import File
from jhplot import *

fhttp="http://datamelt.org/data_dm/images/dm_logo125px.png"
print Web.get(fhttp)
ip=ColorProcessor(ImageIO.read(File("dm_logo125px.png")))
ip.findEdges()
bimg = ip.getBufferedImage()

# save file and show it!
outputfile =File("dm.png");
ImageIO.write(bimg, "png", outputfile);
imp = IJ.openImage("dm.png")
imp.show()