Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::VertexProjectionDataT< T > Struct Template Reference

Constraint data for a vertex 2D projection target. More...

#include <vertex_projection_error_function.h>

Inheritance diagram for momentum::VertexProjectionDataT< T >:

Public Member Functions

 VertexProjectionDataT ()=default
 VertexProjectionDataT (size_t vIndex, const Eigen::Vector2< T > &targetPos, const Eigen::Matrix< T, 3, 4 > &proj, float w, const std::string &nm="")
Public Member Functions inherited from momentum::VertexConstraintData
 VertexConstraintData ()=default
 VertexConstraintData (size_t vIndex, float w, const std::string &n="")

Public Attributes

Eigen::Vector2< T > target = Eigen::Vector2<T>::Zero()
 Target position in 2D screen space.
Eigen::Matrix< T, 3, 4 > projectionMatrix = Eigen::Matrix<T, 3, 4>::Zero()
 Camera projection matrix (3x4).
Public Attributes inherited from momentum::VertexConstraintData
size_t vertexIndex = kInvalidIndex
 Vertex index in the mesh.
float weight = 0.0f
 Weight of the constraint.
std::string name
 Name of the constraint (for debugging).

Detailed Description

template<typename T>
struct momentum::VertexProjectionDataT< T >

Constraint data for a vertex 2D projection target.

Constrains a mesh vertex projected to a 2D target position.

Definition at line 18 of file vertex_projection_error_function.h.

Constructor & Destructor Documentation

◆ VertexProjectionDataT() [1/2]

template<typename T>
momentum::VertexProjectionDataT< T >::VertexProjectionDataT ( )
default

◆ VertexProjectionDataT() [2/2]

template<typename T>
momentum::VertexProjectionDataT< T >::VertexProjectionDataT ( size_t vIndex,
const Eigen::Vector2< T > & targetPos,
const Eigen::Matrix< T, 3, 4 > & proj,
float w,
const std::string & nm = "" )
inline

Member Data Documentation

◆ projectionMatrix

template<typename T>
Eigen::Matrix<T, 3, 4> momentum::VertexProjectionDataT< T >::projectionMatrix = Eigen::Matrix<T, 3, 4>::Zero()

Camera projection matrix (3x4).

Definition at line 23 of file vertex_projection_error_function.h.

Referenced by VertexProjectionDataT().

◆ target

template<typename T>
Eigen::Vector2<T> momentum::VertexProjectionDataT< T >::target = Eigen::Vector2<T>::Zero()

Target position in 2D screen space.

Definition at line 20 of file vertex_projection_error_function.h.

Referenced by VertexProjectionDataT().


The documentation for this struct was generated from the following file: