|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Constraint data for a vertex 2D projection target. More...
#include <vertex_projection_error_function.h>
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). | |
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.
|
default |
|
inline |
Definition at line 26 of file vertex_projection_error_function.h.
References projectionMatrix, target, and momentum::VertexConstraintData::VertexConstraintData().
| 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().
| 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().