]>
Commit | Line | Data |
---|---|---|
02a41a44 JK |
1 | # |
2 | Summary: Open source algorithms for image denoising and interpolation | |
3 | Name: GREYCstoration | |
4 | Version: 2.9 | |
5 | Release: 1 | |
6 | License: distributable | |
7 | Group: Applications | |
8 | Source0: http://dl.sourceforge.net/cimg/%{name}-%{version}-src.zip | |
9 | # Source0-md5: c650002008f91ee6409ac78452bc20a1 | |
10 | URL: http://cimg.sourceforge.net/greycstoration/ | |
11 | BuildRequires: gimp-devel >= 1:2.0.0 | |
99ecd0f8 | 12 | BuildRequires: unzip |
02a41a44 JK |
13 | BuildRequires: xorg-lib-libXext-devel |
14 | BuildRequires: xorg-lib-libXrandr-devel | |
15 | BuildRequires: xorg-lib-libX11-devel | |
16 | BuildRequires: libpng-devel | |
17 | BuildRequires: libjpeg-devel | |
18 | BuildRequires: libtiff-devel | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define _plugindir %(gimptool --gimpplugindir)/plug-ins | |
22 | %define _scriptdir %(gimptool --gimpdatadir)/scripts | |
23 | ||
24 | %description | |
25 | GREYCstoration is an image regularization algorithm which is able to process a | |
26 | color image by locally removing small variations of pixel intensities while | |
27 | preserving significant global image features, such as edges and corners. The | |
28 | most direct application of image regularization is image denoising. By | |
29 | extension, it can also be used to inpaint or resize images. | |
30 | ||
31 | GREYCstoration is based on state-of-the-art image processing methods using | |
32 | nonlinear multi-valued diffusion PDE's (Partial Differential Equations). This | |
33 | kind of method generally outperforms basic image filtering techniques (such as | |
34 | convolution, median filtering, etc.), classically encountered in image painting | |
35 | programs. | |
36 | ||
37 | %package -n gimp-plugin-%{name} | |
38 | Summary: GIMP plugin for image denoising and interpolation | |
39 | Group: X11/Applications/Graphics | |
40 | Obsoletes: gimp-plugin-greycstoration | |
41 | ||
42 | %description -n gimp-plugin-%{name} | |
43 | ||
44 | %prep | |
45 | %setup -q -n %{name}-%{version}-src | |
46 | ln -s src/CImg.h src/plugins . | |
47 | ||
48 | %build | |
49 | %{__make} linux -C src \ | |
50 | GREYCSTORATION_OPT_FLAGS="%{rpmcflags}" | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | install -d $RPM_BUILD_ROOT/{%{_bindir},%{_plugindir}} | |
55 | ||
56 | install src/greycstoration $RPM_BUILD_ROOT%{_bindir} | |
57 | install src/greycstoration4gimp $RPM_BUILD_ROOT%{_plugindir} | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Licence_CeCILL_V2-en.txt README.txt | |
65 | %attr(755,root,root) %{_bindir}/* | |
66 | ||
67 | %files -n gimp-plugin-%{name} | |
68 | %defattr(644,root,root,755) | |
69 | %doc Licence_CeCILL_V2-en.txt README.txt | |
70 | %attr(755,root,root) %{_plugindir}/* |