1 |
greg |
1.1 |
# RCSid $Id: Makefile,v 1.6 2020/06/30 18:00:19 greg Exp $ |
2 |
|
|
# |
3 |
|
|
# Unit tests for tools built in src/px |
4 |
|
|
# |
5 |
|
|
|
6 |
|
|
HDR_CMP = radcompare -rms 0.07 -rel 1e-6 -max 0.2 |
7 |
|
|
|
8 |
|
|
IMG_CMP = radcompare -h -rms 0.03 -rel 0.03 -max 0.07 |
9 |
|
|
|
10 |
|
|
all: test-pfilt test-pvalue test-ra_tiff test-normtiff test-pcompos \ |
11 |
|
|
test-protate test-pflip |
12 |
|
|
|
13 |
|
|
clean: |
14 |
|
|
rm -f test.hdr test24.hdr test24.tif test32L.tif \ |
15 |
|
|
norm24.tif norm8.tif pcompos.hdr |
16 |
|
|
|
17 |
|
|
test-pfilt: test.hdr |
18 |
|
|
$(HDR_CMP) ref/test.hdr test.hdr |
19 |
|
|
|
20 |
|
|
test-pvalue: test24.hdr |
21 |
|
|
$(IMG_CMP) ref/test24.hdr test24.hdr |
22 |
|
|
|
23 |
|
|
test-protate test-pflip test-pcompos: test.hdr test24.hdr |
24 |
|
|
protate -r test.hdr | pcompos -a 2 -s 10 -b 1 1 1 \ |
25 |
|
|
'!pflip -h test24.hdr' - \ |
26 |
|
|
'!pflip -v test24.hdr' '!protate test.hdr' > pcompos.hdr |
27 |
|
|
$(HDR_CMP) ref/pcompos.hdr pcompos.hdr |
28 |
|
|
rm -f pcompos.hdr |
29 |
|
|
|
30 |
|
|
test-ra_tiff: test.hdr test24.hdr |
31 |
|
|
ra_tiff test24.hdr test24.tif |
32 |
|
|
ra_tiff -r test24.tif | $(IMG_CMP) test24.hdr - |
33 |
|
|
ra_tiff -L test.hdr test32L.tif |
34 |
|
|
ra_tiff -r test32L.tif | $(HDR_CMP) -h test.hdr - |
35 |
|
|
rm -f test24.tif test32L.tif |
36 |
|
|
|
37 |
|
|
test-normtiff: test.hdr |
38 |
|
|
normtiff -z test.hdr norm24.tif |
39 |
|
|
radcompare ref/norm24.tif norm24.tif |
40 |
|
|
normtiff -z -b test.hdr norm8.tif |
41 |
|
|
radcompare ref/norm8.tif norm8.tif |
42 |
|
|
rm -f norm24.tif norm8.tif |
43 |
|
|
|
44 |
|
|
test24.hdr: test.hdr |
45 |
|
|
pvalue -db test.hdr | pvalue -r -db > test24.hdr |
46 |
|
|
|
47 |
|
|
test.hdr: ../renders/sunset.hdr |
48 |
|
|
pfilt -x /2.5 -y /2.5 -r .6 ../renders/sunset.hdr > test.hdr |