DP¶
- class menpo.base.DP[source]¶
Bases: object
Object that is able to take it’s own derivative wrt parametrization.
The parametrization of objects is typically defined by the Vectorizable interface. As a result, DP is a mix-in that should be inherited along with Vectorizable.
- d_dp(points)[source]¶
The derivative of this spatial object wrt parametrization changes evaluated at points.
Parameters: points : (n_points, n_dims) ndarray
The spatial points at which the derivative should be evaluated.
Returns: d_dp : (n_points, n_parameters, n_dims) ndarray
The jacobian wrt parametrization.
d_dp[i, j, k] is the scalar differential change that the k’th dimension of the i’th point experiences due to a first order change in the j’th scalar in the parametrization vector.