diff --git a/bm3d_src/BM3Ddenoising b/bm3d_src/BM3Ddenoising new file mode 100755 index 0000000..1409787 Binary files /dev/null and b/bm3d_src/BM3Ddenoising differ diff --git a/bm3d_src/basic.png b/bm3d_src/basic.png new file mode 100644 index 0000000..30c0519 Binary files /dev/null and b/bm3d_src/basic.png differ diff --git a/bm3d_src/bm3d.o b/bm3d_src/bm3d.o new file mode 100644 index 0000000..9a34c4b Binary files /dev/null and b/bm3d_src/bm3d.o differ diff --git a/bm3d_src/denoised.png b/bm3d_src/denoised.png new file mode 100644 index 0000000..efc175e Binary files /dev/null and b/bm3d_src/denoised.png differ diff --git a/bm3d_src/difference.png b/bm3d_src/difference.png new file mode 100644 index 0000000..88aaa9c Binary files /dev/null and b/bm3d_src/difference.png differ diff --git a/bm3d_src/foo.png b/bm3d_src/foo.png new file mode 100644 index 0000000..049bb74 Binary files /dev/null and b/bm3d_src/foo.png differ diff --git a/bm3d_src/foo2.png b/bm3d_src/foo2.png new file mode 100644 index 0000000..86e14e9 Binary files /dev/null and b/bm3d_src/foo2.png differ diff --git a/bm3d_src/io_png.o b/bm3d_src/io_png.o new file mode 100644 index 0000000..7a66b24 Binary files /dev/null and b/bm3d_src/io_png.o differ diff --git a/bm3d_src/lib_transforms.o b/bm3d_src/lib_transforms.o new file mode 100644 index 0000000..adbf8be Binary files /dev/null and b/bm3d_src/lib_transforms.o differ diff --git a/bm3d_src/main.o b/bm3d_src/main.o new file mode 100644 index 0000000..6ea5f7d Binary files /dev/null and b/bm3d_src/main.o differ diff --git a/bm3d_src/measures.txt b/bm3d_src/measures.txt new file mode 100644 index 0000000..877d64b --- /dev/null +++ b/bm3d_src/measures.txt @@ -0,0 +1,8 @@ + +************ +-sigma = 40 +-PSNR_basic = 29.6098 +-RMSE_basic = 8.4343 +-PSNR = 30.2646 +-RMSE = 7.82187 + diff --git a/bm3d_src/mt19937ar.o b/bm3d_src/mt19937ar.o new file mode 100644 index 0000000..c1c82d7 Binary files /dev/null and b/bm3d_src/mt19937ar.o differ diff --git a/bm3d_src/utilities.o b/bm3d_src/utilities.o new file mode 100644 index 0000000..1a94929 Binary files /dev/null and b/bm3d_src/utilities.o differ diff --git a/example.py b/example.py new file mode 100644 index 0000000..0732a78 --- /dev/null +++ b/example.py @@ -0,0 +1,22 @@ +from nose.tools import * +import numpy as np +import skimage.data +import scipy.misc + +import sys + + +import pybm3d + + + +x = skimage.data.camera().astype(np.float32) +x.shape = x.shape[0], x.shape[1], 1 + +noise = np.random.normal(0, 40, x.shape).astype(np.float32) +x = x + noise + +scipy.misc.imsave("foo.png", x[:, :, 0] ) # / np.max(x)) +z = pybm3d.bm3d.bm3d(x, 40.0) + +scipy.misc.imsave("out.png", z[:, :, 0] ) # / np.max(x)) diff --git a/pybm3d.egg-info/PKG-INFO b/pybm3d.egg-info/PKG-INFO new file mode 100644 index 0000000..036ce85 --- /dev/null +++ b/pybm3d.egg-info/PKG-INFO @@ -0,0 +1,10 @@ +Metadata-Version: 1.0 +Name: pybm3d +Version: 0.0.0 +Summary: UNKNOWN +Home-page: UNKNOWN +Author: UNKNOWN +Author-email: UNKNOWN +License: UNKNOWN +Description: UNKNOWN +Platform: UNKNOWN diff --git a/pybm3d.egg-info/SOURCES.txt b/pybm3d.egg-info/SOURCES.txt new file mode 100644 index 0000000..adce9f4 --- /dev/null +++ b/pybm3d.egg-info/SOURCES.txt @@ -0,0 +1,6 @@ +bm3d_src/mt19937ar.c +pybm3d/bm3d.c +pybm3d.egg-info/PKG-INFO +pybm3d.egg-info/SOURCES.txt +pybm3d.egg-info/dependency_links.txt +pybm3d.egg-info/top_level.txt \ No newline at end of file diff --git a/pybm3d.egg-info/dependency_links.txt b/pybm3d.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/pybm3d.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/pybm3d.egg-info/top_level.txt b/pybm3d.egg-info/top_level.txt new file mode 100644 index 0000000..15e8949 --- /dev/null +++ b/pybm3d.egg-info/top_level.txt @@ -0,0 +1 @@ +pybm3d diff --git a/tests/foo.png b/tests/foo.png new file mode 100644 index 0000000..9e043a7 Binary files /dev/null and b/tests/foo.png differ diff --git a/tests/out.png b/tests/out.png new file mode 100644 index 0000000..493387f Binary files /dev/null and b/tests/out.png differ diff --git a/tests/test.png b/tests/test.png new file mode 100644 index 0000000..e69de29