]> AND Private Git Repository - canny.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
ourapproach.tex modifié
authorcouchot <jf.couchot@gmail.com>
Thu, 30 Oct 2014 15:17:52 +0000 (16:17 +0100)
committercouchot <jf.couchot@gmail.com>
Thu, 30 Oct 2014 15:17:52 +0000 (16:17 +0100)
stc/exp/python/testdiff.py [new file with mode: 0644]

diff --git a/stc/exp/python/testdiff.py b/stc/exp/python/testdiff.py
new file mode 100644 (file)
index 0000000..8e6a64f
--- /dev/null
@@ -0,0 +1,45 @@
+import Image as im
+import numpy as np
+
+cover = im.open("lena512.bmp")
+cover.save("lena512.png")
+
+d7= im.open("diff7.pgm")
+d7.save("diff7.png")
+d7= im.open("diff7.png")
+
+l6 = im.open("lena6.pgm")
+l6.save("lena6.png")
+
+l7 = im.open("lena7.pgm")
+l7.save("lena7.png")
+
+
+e6 = im.open("edge6.pgm")
+e6.save("edge6.png")
+
+e7 = im.open("edge7.pgm")
+e7.save("edge7.png")
+
+
+d6= im.open("diff6.pgm")
+d6.save("diff6.png")
+d6= im.open("diff6.png")
+
+print d7.size
+m7 = d7.getdata()
+m6 = d6.getdata()
+
+r7= {}
+
+for e in m7:
+    if e not in r7:
+        r7[e] = 1
+print r7
+
+r6={}
+for e in m6:
+    if e not in r6:
+        r6[e] = 1
+print r6
+