38 Eigen::Ref<Eigen::VectorX<T>> gradient)
final;
46 Eigen::Ref<Eigen::MatrixX<T>> jacobian,
47 Eigen::Ref<Eigen::VectorX<T>> residual,
double getJacobian(const ModelParametersT< T > ¶ms, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Eigen::Ref< Eigen::MatrixX< T > > jacobian, Eigen::Ref< Eigen::VectorX< T > > residual, int &usedRows) final
size_t getJacobianSize() const final
Eigen::VectorX< float > getMeanShape(const ModelParametersT< float > ¶ms) const
PosePriorErrorFunctionT(const Character &character, std::shared_ptr< const MppcaT< T > > pp)
void setPosePrior(std::shared_ptr< const MppcaT< T > > pp)
double logProbability(const ModelParametersT< T > ¶ms) const
double getGradient(const ModelParametersT< T > ¶ms, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Eigen::Ref< Eigen::VectorX< T > > gradient) final
std::shared_ptr< const MppcaT< float > > posePrior_
void getBestFitMode(const ModelParametersT< float > ¶ms, size_t &bestIdx, Eigen::VectorX< float > &bestDiff, float &bestR, float &minDist) const
static constexpr float kPosePriorWeight
PosePriorErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, std::shared_ptr< const MppcaT< T > > pp)
std::vector< size_t > ppMap_
double getError(const ModelParametersT< T > ¶ms, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState) final
std::vector< size_t > invMap_
SkeletonErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
SkeletonT< float > Skeleton
ParameterTransformT< float > ParameterTransform
Eigen::Matrix< T, Dynamic, Dynamic > MatrixX
Dynamic-size, column-major dense matrix.
Vector< T, Dynamic > VectorX
Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
A character model with skeletal structure, mesh, and optional components.
Represents the complete state of a model's mesh.
A vector of size numModelParams holding the values of all model parameters for a character.
Mixture of Probabilistic Principal Component Analyzers (MPPCA).
Represents the complete state of a skeleton.