33 Ref<Eigen::VectorX<T>> gradient)
final;
38 Ref<Eigen::MatrixX<T>> jacobian,
39 Ref<Eigen::VectorX<T>> residual,
44 this->targetParameters_ = params;
45 this->targetWeights_ = weights;
49 return this->targetParameters_;
53 return this->targetWeights_;
58 Eigen::VectorX<T> targetWeights_;
ModelParametersErrorFunctionT(const Character &character, const ParameterSet &active)
void setTargetParameters(const ModelParametersT< float > ¶ms, const Eigen::VectorX< float > &weights)
static constexpr float kMotionWeight
const ModelParametersT< T > & getTargetParameters() const
size_t getJacobianSize() const final
ModelParametersErrorFunctionT(const Character &character)
double getJacobian(const ModelParametersT< T > ¶meters, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Ref< Eigen::MatrixX< T > > jacobian, Ref< Eigen::VectorX< T > > residual, int &usedRows) final
double getError(const ModelParametersT< T > ¶meters, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState) final
ModelParametersErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
const Eigen::VectorX< T > & getTargetWeights() const
double getGradient(const ModelParametersT< T > ¶meters, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Ref< Eigen::VectorX< T > > gradient) final
SkeletonErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
SkeletonT< float > Skeleton
ParameterTransformT< float > ParameterTransform
Vector< T, Dynamic > VectorX
Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
std::bitset< kMaxModelParams > ParameterSet
Bitset for model parameter enablement.
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.
Represents the complete state of a skeleton.