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()