Ajout du débruitage (lissage) additif au débruitage salt&pepper pour affiner les bords

This commit is contained in:
xdrm-brackets 2015-09-18 12:07:52 +02:00
parent 80fcbea44f
commit 6cc3468a3d
1 changed files with 4 additions and 0 deletions

View File

@ -197,6 +197,10 @@ def testSaltAndPepper():
noise.SaltAndPepper_unset(img.content.map, seuil=1, borne=1)
print "%s |" % (t.get())
print "| Débruitage additif |",; t.reset();
noise.AdditiveNoise_unset(img.content.map);
print "%s |" % (t.get())
# Unparsing
print "| Unparsing file |",; t.reset();
img.unparse()