Skip to content

Commit f3ca130

Browse files
author
zvezdochiot
committed
0.20130707
0 parents  commit f3ca130

File tree

289 files changed

+58882
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+58882
-0
lines changed

LICENSE

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Simplified BSD License
2+
http://www.opensource.org/licenses/bsd-license.html
3+
4+
Copyright (c) 2010-2011, Pascal Getreuer
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are
9+
met:
10+
11+
* Redistributions of source code must retain the above copyright
12+
notice, this list of conditions and the following disclaimer.
13+
* Redistributions in binary form must reproduce the above copyright
14+
notice, this list of conditions and the following disclaimer in
15+
the documentation and/or other materials provided with the distribution.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27+
POSSIBILITY OF SUCH DAMAGE.

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
% IPOL.IM Tools Image Interpolation.
2+
3+
# ABOUT
4+
5+
* Author : Pascal Getreuer <[email protected]>
6+
* Copyright : (C) 2010-2012 IPOL Image Processing On Line http://www.ipol.im/
7+
* Licence : BSD
8+
* Latest version available at: https://github.com/zvezdochiot/iminterp
9+
10+
# OVERVIEW
11+
12+
This source code provides an implementation of the "Image Interpolation"
13+
described in the IPOL article: http://www.ipol.im/
14+
15+
# UNIX/LINUX/MAC USER GUIDE
16+
17+
The code is compilable on Unix/Linux and Mac OS.
18+
19+
- Compilation.
20+
Automated compilation requires the make.
21+
22+
- Dependencies.
23+
This code requires the libipoliio (https://github.com/zvezdochiot/libipoliio), libfftw3f.
24+
25+
- Image formats.
26+
Only the BMP, PNG, JPEG, and TIFF (float) formats are supported.
27+
28+
-------------------------------------------------------------------------
29+
Usage:
30+
1. Download the code package and extract it. Go to that directory.
31+
32+
2. Compile the source code (on Unix/Linux/Mac OS).
33+
34+
make;
35+
36+
# ABOUT THIS FILE
37+
This program is free software: you can use, modify and/or
38+
redistribute it under the terms of the simplified BSD License. You
39+
should have received a copy of this license along this program. If
40+
not, see <http://www.opensource.org/licenses/bsd-license.html>.

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.20130707

man/man1/imintace.1

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.\"Text automatically generated by txt2man
2+
.TH iminterp "20130706" "1" ""
3+
.RS
4+
ACE automatic color enhancement, P. Getreuer 2012
5+
Using OpenMP with 4 threads
6+
.PP
7+
Syntax: imintace [options] <input file> <output file>
8+
.PP
9+
Only BMP/JPEG/PNG/TIFF images are supported.
10+
.PP
11+
Options:
12+
.RS
13+
.TP
14+
.B
15+
\fB-a\fP <number>
16+
alpha, stronger implies stronger enhancement
17+
.TP
18+
.B
19+
\fB-w\fP <omega>
20+
omega, spatial weighting function, choices are
21+
.RS
22+
.TP
23+
.B
24+
1/r
25+
default ACE, \fBomega\fP(x,y) = \fB1/sqrt\fP(x^2+y^2)
26+
.TP
27+
.B
28+
1
29+
constant, \fBomega\fP(x,y) = 1
30+
.TP
31+
.B
32+
G:#
33+
Gaussian, where # specifies sigma,
34+
\fBomega\fP(x,y) = \fBexp\fP(-(x^2+y^2)/(2 sigma^2))
35+
.RE
36+
.TP
37+
.B
38+
\fB-m\fP <method>
39+
method to use for fast computation, choices are
40+
interp:# interpolate \fBs_a\fP(L - \fBI\fP(x)) with # levels
41+
.RS
42+
.TP
43+
.B
44+
poly:#
45+
polynomial s_a with degree #
46+
.RE
47+
.TP
48+
.B
49+
\fB-q\fP <number>
50+
quality for saving JPEG images (0 to 100)
51+
.RE
52+
.PP
53+
Example:
54+
imintace \fB-a\fP 5 \fB-w\fP 1/r \fB-m\fP interp:12 input.bmp output.bmp
55+
.SH "SEE ALSO"
56+
imintace(1), imintblur(1), imintcoarsen(1), imintdiff(1), imintdmbilinear(1), imintdmcswl1(1), iminterpcw(1), iminterpl(1), iminterpnn(1), iminterps(1), iminterptd(1), imintgaussianbench(1), imintgaussianconv(1), imintgenmstencil(1), iminthisteq(1), imintmaskapply(1), imintmaskrand(1), imintmosaic(1), imintnoise(1), iminttvdeconv(1), iminttvdenoise(1), iminttvinpaint(1).
57+
.PP

man/man1/imintblur.1

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.\"Text automatically generated by txt2man
2+
.TH iminterp "20130706" "1" ""
3+
.RS
4+
Image blurring utility, P. Getreuer 2011-2012
5+
.PP
6+
Usage: imintblur [param:value \.\.\.] input output
7+
.PP
8+
where "input" and "output" are BMP/JPEG/PNG/TIFF files.
9+
.PP
10+
Parameters
11+
.RS
12+
.TP
13+
.B
14+
K:<kernel>
15+
blur kernel for deconvolution
16+
.RS
17+
.TP
18+
.B
19+
K:disk:<radius>
20+
filled disk kernel
21+
.TP
22+
.B
23+
K:gaussian:<sigma>
24+
Gaussian kernel
25+
.TP
26+
.B
27+
K:<file>
28+
read kernel from text or image file
29+
.RE
30+
.TP
31+
.B
32+
noise:<model>:<sigma>
33+
simulate noise with standard deviation sigma
34+
.RS
35+
.TP
36+
.B
37+
noise:gaussian:<sigma>
38+
additive white Gaussian noise
39+
.TP
40+
.B
41+
noise:laplace:<sigma>
42+
Laplace noise
43+
.TP
44+
.B
45+
noise:poisson:<sigma>
46+
Poisson noise
47+
.RE
48+
.TP
49+
.B
50+
f:<file>
51+
input file (alternative syntax)
52+
.TP
53+
.B
54+
u:<file>
55+
output file (alternative syntax)
56+
.TP
57+
.B
58+
jpegquality:<number>
59+
quality for saving JPEG images (0 to 100)
60+
.RE
61+
.PP
62+
Example:
63+
imintblur noise:gaussian:5 K:disk:2 input.bmp blurry.bmp
64+
.SH "SEE ALSO"
65+
imintace(1), imintblur(1), imintcoarsen(1), imintdiff(1), imintdmbilinear(1), imintdmcswl1(1), iminterpcw(1), iminterpl(1), iminterpnn(1), iminterps(1), iminterptd(1), imintgaussianbench(1), imintgaussianconv(1), imintgenmstencil(1), iminthisteq(1), imintmaskapply(1), imintmaskrand(1), imintmosaic(1), imintnoise(1), iminttvdeconv(1), iminttvdenoise(1), iminttvinpaint(1).
66+
.PP

man/man1/imintcoarsen.1

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
.\"Text automatically generated by txt2man
2+
.TH iminterp "20130706" "1" ""
3+
.RS
4+
Image coarsening utility, P. Getreuer 2010-2011
5+
.PP
6+
Usage: imintcoarsen [options] <input file> <output file>
7+
.PP
8+
Only BMP/JPEG/PNG/TIFF images are supported.
9+
.PP
10+
Options:
11+
.RS
12+
.TP
13+
.B
14+
\fB-x\fP <number>
15+
the coarsening factor (>= 1.0, may be non-integer)
16+
.TP
17+
.B
18+
\fB-p\fP <number>
19+
sigma_h, blur size of the Gaussian point spread
20+
function in units of output pixels.
21+
.TP
22+
.B
23+
\fB-b\fP <ext>
24+
boundary handling extension, choices for <ext> are
25+
.RS
26+
.TP
27+
.B
28+
const
29+
constant extension
30+
.TP
31+
.B
32+
hsym
33+
half-sample symmetric (default)
34+
.TP
35+
.B
36+
wsym
37+
whole-sample symmetric
38+
.TP
39+
.B
40+
per
41+
periodic
42+
.RE
43+
.TP
44+
.B
45+
\fB-g\fP <grid>
46+
grid to use for resampling, choices for <grid> are
47+
.RS
48+
.TP
49+
.B
50+
centered
51+
grid with centered alignment (default)
52+
.TP
53+
.B
54+
topleft
55+
the top-left anchored grid
56+
.RE
57+
.TP
58+
.B
59+
\fB-q\fP <number>
60+
quality for saving JPEG images (0 to 100)
61+
.RE
62+
.PP
63+
Example: coarsen by factor 2.5
64+
imintcoarsen \fB-x\fP 2.5 \fB-p\fP 0.35 frog.bmp coarse.bmp
65+
.SH "SEE ALSO"
66+
imintace(1), imintblur(1), imintcoarsen(1), imintdiff(1), imintdmbilinear(1), imintdmcswl1(1), iminterpcw(1), iminterpl(1), iminterpnn(1), iminterps(1), iminterptd(1), imintgaussianbench(1), imintgaussianconv(1), imintgenmstencil(1), iminthisteq(1), imintmaskapply(1), imintmaskrand(1), imintmosaic(1), imintnoise(1), iminttvdeconv(1), iminttvdenoise(1), iminttvinpaint(1).
67+
.PP

man/man1/imintdiff.1

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.\"Text automatically generated by txt2man
2+
.TH iminterp "20130706" "1" ""
3+
.RS
4+
Image difference calculator, P. Getreuer 2010-2011
5+
.PP
6+
Usage: imintdiff [options] <exact file> <distorted file>
7+
Only BMP/JPEG/PNG/TIFF images are supported.
8+
.PP
9+
Options:
10+
.RS
11+
.TP
12+
.B
13+
\fB-m\fP <metric>
14+
Metric to use for comparison, choices are
15+
.RS
16+
.TP
17+
.B
18+
max
19+
Maximum absolute difference, max_n |A_n - B_n|
20+
.TP
21+
.B
22+
mse
23+
Mean squared error, 1/N sum |A_n - B_n|^2
24+
.TP
25+
.B
26+
rmse
27+
Root mean squared error, (MSE)^1/2
28+
.TP
29+
.B
30+
psnr
31+
Peak signal-to-noise ratio, \fB-10\fP \fBlog10\fP(MSE/255^2)
32+
.TP
33+
.B
34+
mssim
35+
Mean structural similarity index
36+
.RE
37+
.TP
38+
.B
39+
\fB-s\fP
40+
Compute metric separately for each channel
41+
.TP
42+
.B
43+
\fB-p\fP <pad>
44+
Remove a margin of <pad> pixels before comparison
45+
.TP
46+
.B
47+
\fB-D\fP <number>
48+
D parameter for difference image
49+
.TP
50+
.B
51+
\fB-q\fP <number>
52+
Quality for saving JPEG images (0 to 100)
53+
.RE
54+
.PP
55+
Alternatively, a difference image is generated by the syntax
56+
imintdiff [\fB-D\fP <number>] <exact file> <distorted file> <output file>
57+
.PP
58+
The difference image is computed as
59+
D_n = 255/D (A_n - B_n) + 255/2.
60+
Values outside of the range [0,255] are saturated.
61+
.PP
62+
Example:
63+
imintdiff \fB-mpsnr\fP frog-exact.png frog-4x.png
64+
.SH "SEE ALSO"
65+
imintace(1), imintblur(1), imintcoarsen(1), imintdiff(1), imintdmbilinear(1), imintdmcswl1(1), iminterpcw(1), iminterpl(1), iminterpnn(1), iminterps(1), iminterptd(1), imintgaussianbench(1), imintgaussianconv(1), imintgenmstencil(1), iminthisteq(1), imintmaskapply(1), imintmaskrand(1), imintmosaic(1), imintnoise(1), iminttvdeconv(1), iminttvdenoise(1), iminttvinpaint(1).
66+
.PP

man/man1/imintdmbilinear.1

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.\"Text automatically generated by txt2man
2+
.TH iminterp "20130706" "1" ""
3+
.RS
4+
Bilinear demosaicing demo, P. Getreuer 2010-2011
5+
.PP
6+
Usage: imintdmbilinear [options] <input file> <output file>
7+
Only BMP/JPEG/PNG/TIFF images are supported.
8+
.PP
9+
Options:
10+
.RS
11+
.TP
12+
.B
13+
\fB-p\fP <pattern>
14+
CFA pattern, choices for <pattern> are
15+
.RS
16+
.TP
17+
.B
18+
RGGB
19+
upperleftmost red pixel is at (0,0)
20+
.TP
21+
.B
22+
GRBG
23+
upperleftmost red pixel is at (1,0)
24+
.TP
25+
.B
26+
GBRG
27+
upperleftmost red pixel is at (0,1)
28+
.TP
29+
.B
30+
BGGR
31+
upperleftmost red pixel is at (1,1)
32+
.RE
33+
.TP
34+
.B
35+
\fB-q\fP <number>
36+
Quality for saving JPEG images (0 to 100)
37+
.RE
38+
.PP
39+
Example:
40+
imintdmbilinear \fB-p\fP RGGB frog.bmp frog-dm.bmp
41+
.SH "SEE ALSO"
42+
imintace(1), imintblur(1), imintcoarsen(1), imintdiff(1), imintdmbilinear(1), imintdmcswl1(1), iminterpcw(1), iminterpl(1), iminterpnn(1), iminterps(1), iminterptd(1), imintgaussianbench(1), imintgaussianconv(1), imintgenmstencil(1), iminthisteq(1), imintmaskapply(1), imintmaskrand(1), imintmosaic(1), imintnoise(1), iminttvdeconv(1), iminttvdenoise(1), iminttvinpaint(1).
43+
.PP

0 commit comments

Comments
 (0)