-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo
executable file
·33 lines (25 loc) · 1.28 KB
/
demo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh
# Demo script for using tdinterp
# Pascal Getreuer 2011
# Image credits: the test image frog-hr.bmp is by
# John D. Willson, USGS Amphibian Research and Monitoring Initiative
# http://armi.usgs.gov/gallery/detail.php?search=Genus&subsearch=Bufo&id=323
echo ''
echo '+============================================================================+'
echo '+ First, we coarsen high resolution image "frog-hr.bmp" by factor 4 to make +'
echo '+ low resolution image "frog-lr.bmp". +'
echo '+============================================================================+'
./imcoarsen -x4 -p0.5 frog-hr.bmp frog-lr.bmp
echo ''
echo ''
echo '+============================================================================+'
echo '+ Now we run the interpolation on the coarsened image "frog-lr.bmp"... +'
echo '+============================================================================+'
./tdinterp -x4 -p0.5 frog-lr.bmp interp.bmp
echo ''
echo ''
echo '+============================================================================+'
echo '+ The difference between the original and the interpolation is +'
echo '+============================================================================+'
./imdiff frog-hr.bmp interp.bmp
echo ''