This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via ec015ac1774ec0b833b2c9206f924361f897e20d (commit) from 0bd5967d27831f240bd4e401332ef494d94f60c5 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/ec015ac1774ec0b833b2c9206f924361f897e...
commit ec015ac1774ec0b833b2c9206f924361f897e20d Author: Cyril Hrubis metan@ucw.cz Date: Fri Sep 27 23:52:23 2013 +0200
doc: filters: regen.py: Add names to the filter params.
Now the example images description includes id= for each filter parameter value.
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/doc/images/blur/images.txt b/doc/images/blur/images.txt index 74697da..2c0d697 100644 --- a/doc/images/blur/images.txt +++ b/doc/images/blur/images.txt @@ -1,4 +1,4 @@ -.Example Images: Original Image; Gaussian Blur 2 2, 0 4, 4 0, 4 4, 10 10 +.Original Image; Gaussian Blur xsig=2 ysig=2, xsig=0 ysig=4, xsig=4 ysig=0, xsig=4 ysig=4, xsig=10 ysig=10 image:images/orig/lenna_small.png[ "Original Image", link="images/orig/lenna.png"] diff --git a/doc/images/edge_sharpening/images.txt b/doc/images/edge_sharpening/images.txt index 8066f2e..58c3636 100644 --- a/doc/images/edge_sharpening/images.txt +++ b/doc/images/edge_sharpening/images.txt @@ -1,4 +1,4 @@ -.Example Images: Original Image; Edge Sharpening 0.1, 0.3, 0.5, 0.8, 1.0 +.Original Image; Edge Sharpening w=0.1, w=0.3, w=0.5, w=0.8, w=1.0 image:images/orig/lenna_small.png[ "Original Image", link="images/orig/lenna.png"] diff --git a/doc/images/gaussian_noise/images.txt b/doc/images/gaussian_noise/images.txt index 6304c7a..a173f04 100644 --- a/doc/images/gaussian_noise/images.txt +++ b/doc/images/gaussian_noise/images.txt @@ -1,4 +1,4 @@ -.Example Images: Original Image; Gaussian Additive Noise 0.03 0, 0.05 0, 0.05 -0.1, 0.05 0.1, 0.07 0.0 +.Original Image; Gaussian Additive Noise s=0.03 m=0, s=0.05 m=0, s=0.05 m=-0.1, s=0.05 m=0.1, s=0.07 m=0.0 image:images/orig/lenna_small.png[ "Original Image", link="images/orig/lenna.png"] diff --git a/doc/images/median/images.txt b/doc/images/median/images.txt index 968ef8a..f656ca8 100644 --- a/doc/images/median/images.txt +++ b/doc/images/median/images.txt @@ -1,4 +1,4 @@ -.Example Images: Original Image; Median 3 3, 5 5, 7 7, 9 9, 12 12 +.Original Image; Median xr=3 yr=3, xr=5 yr=5, xr=7 yr=7, xr=9 yr=9, xr=12 yr=12 image:images/orig/lenna_small.png[ "Original Image", link="images/orig/lenna.png"] diff --git a/doc/images/regen.py b/doc/images/regen.py index b1a8788..8a705f7 100755 --- a/doc/images/regen.py +++ b/doc/images/regen.py @@ -16,7 +16,7 @@ class ImgGen: def write_asciidoc_head(self, dst_path, heading): self.f = open('../' + dst_path + 'images.txt', 'w') f = self.f - f.write('.Example Images: Original Image; ' + heading + 'n') + f.write('.Original Image; ' + heading + 'n') f.write('image:' + self.orig_path + 'lenna_small.png[n') f.write('t"Original Image",n') f.write('tlink="' + self.orig_path + 'lenna.png"]n') @@ -31,12 +31,13 @@ class ImgGen: self.f.write('n') self.f.close()
- def gen(self, func, func_params_arr, dst_path, func_name): + def gen(self, func, func_param_desc, func_params_arr, dst_path, func_name):
print("Generating " + func_name)
self.write_asciidoc_head(dst_path, func_name + ' ' + - ', '.join(map(lambda x: ' '.join([str(i) for i in x]), func_params_arr))) + ', '.join(map(lambda x: ' '.join([func_param_desc[i] + '=' + + str(x[i]) for i in range(0, len(x))]), func_params_arr)))
for i in func_params_arr: str_i = [str(x) for x in i] @@ -60,19 +61,19 @@ class ImgGen: def main(): imggen = ImgGen('images/orig/')
- imggen.gen(filters.GaussianBlurAlloc, + imggen.gen(filters.GaussianBlurAlloc, ['xsig', 'ysig'], [[2, 2], [0, 4], [4, 0], [4, 4], [10, 10]], 'images/blur/', 'Gaussian Blur')
- imggen.gen(filters.MedianAlloc, + imggen.gen(filters.MedianAlloc, ['xr', 'yr'], [[3, 3], [5, 5], [7, 7], [9, 9], [12, 12]], 'images/median/', 'Median')
- imggen.gen(filters.EdgeSharpeningAlloc, + imggen.gen(filters.EdgeSharpeningAlloc, ['w'], [[0.1], [0.3], [0.5], [0.8], [1.0]], 'images/edge_sharpening/', 'Edge Sharpening')
- imggen.gen(filters.GaussianNoiseAddAlloc, + imggen.gen(filters.GaussianNoiseAddAlloc, ['s', 'm'], [[0.03, 0], [0.05, 0], [0.05, -0.1], [0.05, 0.1], [0.07, 0.0]], 'images/gaussian_noise/', 'Gaussian Additive Noise')
-----------------------------------------------------------------------
Summary of changes: doc/images/blur/images.txt | 2 +- doc/images/edge_sharpening/images.txt | 2 +- doc/images/gaussian_noise/images.txt | 2 +- doc/images/median/images.txt | 2 +- doc/images/regen.py | 15 ++++++++------- 5 files changed, 12 insertions(+), 11 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.