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

Per-constraint data for CameraProjectionErrorFunctionT. More...

#include <camera_projection_error_function.h>

Public Attributes

size_t parent {}
 Parent joint of the 3D point.
Eigen::Vector3< T > offset = Eigen::Vector3<T>::Zero()
 Offset from parent joint.
T weight = 1
 Constraint weight.
Eigen::Vector2< T > target = Eigen::Vector2<T>::Zero()
 Target pixel coordinates.

Detailed Description

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

Per-constraint data for CameraProjectionErrorFunctionT.

Each constraint specifies a 3D point (attached to a skeleton joint via parent + offset) and a target 2D pixel location. The error function penalizes the reprojection error between the projected 3D point and the target pixel.

Definition at line 26 of file camera_projection_error_function.h.

Member Data Documentation

◆ offset

template<typename T>
Eigen::Vector3<T> momentum::ProjectionConstraintT< T >::offset = Eigen::Vector3<T>::Zero()

Offset from parent joint.

Definition at line 28 of file camera_projection_error_function.h.

◆ parent

template<typename T>
size_t momentum::ProjectionConstraintT< T >::parent {}

Parent joint of the 3D point.

Definition at line 27 of file camera_projection_error_function.h.

◆ target

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

Target pixel coordinates.

Definition at line 30 of file camera_projection_error_function.h.

◆ weight

template<typename T>
T momentum::ProjectionConstraintT< T >::weight = 1

Constraint weight.

Definition at line 29 of file camera_projection_error_function.h.


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