Skip to content

Commit 526dff7

Browse files
committed
Add st_warp test to oiiotool-xform testsuite
1 parent 5ae38e8 commit 526dff7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

testsuite/oiiotool-xform/ref/out.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Comparing "pixelaspect.tif" and "ref/pixelaspect.tif"
4646
PASS
4747
Comparing "warped.tif" and "ref/warped.tif"
4848
PASS
49+
Comparing "st_warped.tif" and "ref/st_warped.tif"
50+
PASS
4951
Comparing "rotated.tif" and "ref/rotated.tif"
5052
PASS
5153
Comparing "rotated-offcenter.tif" and "ref/rotated-offcenter.tif"
157 KB
Binary file not shown.

testsuite/oiiotool-xform/run.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ def make_test_pattern1 (filename, xres=288, yres=216) :
8282
# test warp
8383
command += oiiotool ("resize.tif --warp 0.7071068,0.7071068,0,-0.7071068,0.7071068,0,128,-53.01933,1 -o warped.tif")
8484

85+
# test st_warp
86+
# We use an identity ST pattern with a bit of gamma to simulate some warping.
87+
command += oiiotool ("resize.tif "
88+
"--pattern fill:topleft=0,0,0:topright=1,0,0:bottomleft=0,1,0:bottomright=1,1,0 256x256 3 "
89+
"--powc 1.2 --st_warp -o st_warped.tif")
90+
8591
# test flip
8692
command += oiiotool ("image.tif --flip -o flip.tif")
8793
command += oiiotool ("image.tif --crop 180x140+30+30 --flip -o flip-crop.tif")
@@ -142,6 +148,7 @@ def make_test_pattern1 (filename, xres=288, yres=216) :
142148
"fith-height-300x300.exr",
143149
"pixelaspect.tif",
144150
"warped.tif",
151+
"st_warped.tif",
145152
"rotated.tif", "rotated-offcenter.tif", "rotated360.tif",
146153
"flip.tif", "flip-crop.tif",
147154
"flop.tif", "flop-crop.tif",

0 commit comments

Comments
 (0)