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

Per-constraint data for CameraVertexProjectionErrorFunctionT. More...

#include <camera_vertex_projection_error_function.h>

Public Attributes

size_t vertexIndex = kInvalidIndex
 Mesh vertex index.
Eigen::Vector2< T > target = Eigen::Vector2<T>::Zero()
 Target pixel coordinates.
T weight = T(1)
 Constraint weight.

Detailed Description

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

Per-constraint data for CameraVertexProjectionErrorFunctionT.

Each constraint specifies a mesh vertex (by index) and a target 2D pixel location. The error function penalizes the reprojection error between the vertex's projected position and the target pixel.

Definition at line 27 of file camera_vertex_projection_error_function.h.

Member Data Documentation

◆ target

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

Target pixel coordinates.

Definition at line 29 of file camera_vertex_projection_error_function.h.

◆ vertexIndex

template<typename T>
size_t momentum::CameraVertexProjectionDataT< T >::vertexIndex = kInvalidIndex

Mesh vertex index.

Definition at line 28 of file camera_vertex_projection_error_function.h.

◆ weight

template<typename T>
T momentum::CameraVertexProjectionDataT< T >::weight = T(1)

Constraint weight.

Definition at line 30 of file camera_vertex_projection_error_function.h.


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