Skip to content

Commit c682e56

Browse files
committed
Add --st_warp section to oiiotool.rst
1 parent 4ede8d0 commit c682e56

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/doc/oiiotool.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3268,6 +3268,41 @@ current top image.
32683268
oiiotool mandrill.tif --warp "0.707,0.707,0,-0.707,0.707,0,128,-53.02,1" -o warped.tif
32693269

32703270

3271+
.. option:: --st_warp
3272+
3273+
Use the top image as a set of normalized `st` image coordinates to warp the
3274+
second image in the stack.
3275+
3276+
Optional appended modifiers include:
3277+
3278+
`filter=` *name*
3279+
Filter name. The default is `lanczos3`.
3280+
3281+
`chan_s=` *index*
3282+
The index of the `s` channel in the `st` image (default=0).
3283+
3284+
`chan_t=` *index*
3285+
The index of the `t` channel in the `st` image (default=1).
3286+
3287+
`flip_s=` *bool*
3288+
If nonzero, mirror the `s` coordinates along the horizontal axis. Useful
3289+
for coordinates authored in terms of an origin other than the upper-left
3290+
corner (default=0).
3291+
3292+
`flip_t=` *bool*
3293+
If nonzero, mirror the `t` coordinates along the vertical axis. Useful
3294+
for coordinates authored in terms of an origin other than the upper-left
3295+
corner (default=0).
3296+
3297+
Examples::
3298+
3299+
oiiotool mandrill.tif distortion_st.tif --st_warp -o mandrill_distorted.tif
3300+
3301+
# Using an `st` map authored in terms of a lower-left origin (e.g. by
3302+
# Nuke), so flip the vertical (`t`) coordinate.
3303+
oiiotool mandrill.tif st_from_nuke.tif --st_warp:filter=triangle:flip_t=1 -o mandrill_distorted.tif
3304+
3305+
32713306
.. option:: --convolve
32723307

32733308
Use the top image as a kernel to convolve the next image farther down

0 commit comments

Comments
 (0)