From: couchot <jf.couchot@gmail.com>
Date: Thu, 30 Oct 2014 15:17:52 +0000 (+0100)
Subject: ourapproach.tex modifié
X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/canny.git/commitdiff_plain/ef06623aa40e69d9e5332208f9ead5af2e7ea4b6?ds=inline

ourapproach.tex modifié
---

diff --git a/stc/exp/python/testdiff.py b/stc/exp/python/testdiff.py
new file mode 100644
index 0000000..8e6a64f
--- /dev/null
+++ b/stc/exp/python/testdiff.py
@@ -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
+