Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Matlab tensorflow中是否存在cp2tform等价物?_Matlab_Tensorflow_Caffe - Fatal编程技术网

Matlab tensorflow中是否存在cp2tform等价物?

Matlab tensorflow中是否存在cp2tform等价物?,matlab,tensorflow,caffe,Matlab,Tensorflow,Caffe,在Matlab中,cp2tform可用于将关键点转换为固定坐标,尤其是在人脸对齐中。如何在TensorFlow中实现 在Matlab中,您可以使用以下命令检查函数的代码: >> edit cp2tform function [trans,uv,xy,uv_dev,xy_dev] = cp2tform(varargin) %CP2TFORM Infer spatial transformation from control point pairs. % CP2TFORM is n

在Matlab中,cp2tform可用于将关键点转换为固定坐标,尤其是在人脸对齐中。如何在TensorFlow中实现

在Matlab中,您可以使用以下命令检查函数的代码:

>> edit cp2tform

function [trans,uv,xy,uv_dev,xy_dev] = cp2tform(varargin)
%CP2TFORM Infer spatial transformation from control point pairs.
%   CP2TFORM is not recommended. Use FITGEOTRANS instead.
%   
%   CP2TFORM takes pairs of control points and uses them to infer a
%   spatial transformation. 
%
%   TFORM = CP2TFORM(MOVINGPOINTS,FIXEDPOINTS,TRANSFORMTYPE) returns a TFORM
%   structure containing a spatial transformation. MOVINGPOINTS is an
%   M-by-2 double matrix containing the X and Y coordinates of control
%   points in the moving image you want to transform. FIXEDPOINTS is an
%   M-by-2 double matrix containing the X and Y coordinates of control
%   points in the fixed image. TRANSFORMTYPE can be 'nonreflective
%   similarity', 'similarity', 'affine', 'projective', 'polynomial',
%   'piecewise linear' or 'lwm'. See t
...
因此,您可以在Python中实现它,或者尝试使用一个库来实现空间信息。Python中有各种特定的库:

或一种更通用的图像空间变换: