fliptform
Flip input and output roles of spatial transformation structure
Syntax
Description
Examples
Flip Spatial Transformation Structure
Create a spatial transformation structure.
T = maketform('affine', [.5 0 0; .5 2 0; 0 0 1])
T = struct with fields: ndims_in: 2 ndims_out: 2 forward_fcn: @fwd_affine inverse_fcn: @inv_affine tdata: [1×1 struct]
Create a new spatial transformation structure by flipping the roles of the inputs and outputs.
T2 = fliptform(T)
T2 = struct with fields: ndims_in: 2 ndims_out: 2 forward_fcn: @inv_affine inverse_fcn: @fwd_affine tdata: [1×1 struct]
After flipping the spatial transformation structures, the following statements are equivalent.
x = tformfwd([-3 7],T) x = tforminv([-3 7],T2)
x = 2 14 x = 2 14
Input Arguments
T
— Spatial transformation
TFORM
spatial transformation structure
Spatial transformation, specified as a TFORM
spatial transformation
structure.
Data Types: struct
Output Arguments
tflip
— Flipped spatial transformation
TFORM
spatial transformation structure
Flipped spatial transformation, returned as a TFORM
spatial transformation
structure.
Extended Capabilities
Thread-Based Environment
Run code in the background using MATLAB® backgroundPool
or accelerate code with Parallel Computing Toolbox™ ThreadPool
.
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
Version History
Introduced before R2006aR2021b: Support for thread-based environments
fliptform
now supports thread-based
environments.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)