fliptform

Flip input and output roles of TFORM structure

Syntax

TFLIP = fliptform(T)

Description

TFLIP = fliptform(T) creates a new spatial transformation structure, a TFORM struct, by flipping the roles of the inputs and outputs in an existing TFORM struct.

Examples

T = maketform('affine', [.5 0 0; .5 2 0; 0 0 1]);
T2 = fliptform(T)

The following are equivalent:

x = tformfwd([-3 7],T)
x = tforminv([-3 7],T2)
Was this topic helpful?