diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-03-30 17:12:47 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-03-30 17:12:47 +0000 |
commit | 04afde0b11367018d95be801c543fdcf16420b5d (patch) | |
tree | 8c1ecbdf40aa57ff7fe47234708e3a2995d2b641 /test/pamditherbw.test | |
parent | fbf4dcdf76bf004ea45a762e8399268cc388ae19 (diff) | |
download | netpbm-mirror-04afde0b11367018d95be801c543fdcf16420b5d.tar.gz netpbm-mirror-04afde0b11367018d95be801c543fdcf16420b5d.tar.xz netpbm-mirror-04afde0b11367018d95be801c543fdcf16420b5d.zip |
Update to current Development release - 10.66.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2172 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pamditherbw.test')
-rwxr-xr-x | test/pamditherbw.test | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/test/pamditherbw.test b/test/pamditherbw.test index 5335f12d..fef71efa 100755 --- a/test/pamditherbw.test +++ b/test/pamditherbw.test @@ -2,30 +2,34 @@ # This script tests: pamditherbw # Also requires: ppmtopgm + alias pamditherbw="${PBM_TESTPREFIX}pamditherbw" + alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm" + shopt -s expand_aliases + # Make test input -${PBM_BINPREFIX}ppmtopgm testimg.ppm >${tmpdir}/testimg.pgm +ppmtopgm testimg.ppm >${tmpdir}/testimg.pgm # Test 1. Simple threshold -${PBM_TESTPREFIX}pamditherbw -threshold -val=0.5 \ +pamditherbw -threshold -val=0.5 \ ${tmpdir}/testimg.pgm | cksum # Test 2. Floyd-Steinberg -#${PBM_TESTPREFIX}pamditherbw -floyd -val=0.5 ${tmpdir}/testimg.pgm | cksum +#pamditherbw -floyd -val=0.5 ${tmpdir}/testimg.pgm | cksum # Test 3. Atkinson -#${PBM_TESTPREFIX}pamditherbw -atkinson -val=0.5 ${tmpdir}/testimg.pgm | cksum +#pamditherbw -atkinson -val=0.5 ${tmpdir}/testimg.pgm | cksum # Test 4. Hilbert -${PBM_TESTPREFIX}pamditherbw -hilbert ${tmpdir}/testimg.pgm | cksum +pamditherbw -hilbert ${tmpdir}/testimg.pgm | cksum # Test 5. Dither-8 -${PBM_TESTPREFIX}pamditherbw -dither8 ${tmpdir}/testimg.pgm | cksum +pamditherbw -dither8 ${tmpdir}/testimg.pgm | cksum # Test 6. Cluster4 -${PBM_TESTPREFIX}pamditherbw -cluster4 ${tmpdir}/testimg.pgm | cksum +pamditherbw -cluster4 ${tmpdir}/testimg.pgm | cksum # Test 7. Atkinson -#${PBM_TESTPREFIX}pamditherbw -atkinson -val=0.5 ${tmpdir}/testimg.pgm | cksum +#pamditherbw -atkinson -val=0.5 ${tmpdir}/testimg.pgm | cksum # Remove test file rm ${tmpdir}/testimg.pgm |