MATLAB 帮助中心
Flip input and output roles of spatial transformation structure
tflip = fliptform(T)
tflip = fliptform(T) creates a new TFORM spatial transformation structure by flipping the roles of the inputs and outputs in an existing TFORM structure.
tflip
T
TFORM
example
collapse all
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
Spatial transformation, specified as a TFORM spatial transformation structure.
Data Types: struct
struct
Flipped spatial transformation, returned as a TFORM spatial transformation structure.
expand all
backgroundPool
ThreadPool
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
fliptform now supports thread-based environments.
fliptform
maketform | tformfwd | tforminv
maketform
tformfwd
tforminv
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处