MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ enable_trajectory_2d()

template<typename T >
void MayaFlux::Kinesis::MotionChannel< T >::enable_trajectory_2d ( Lattice2D  lattice,
size_t  window = 16 
)
inline

Enable symbolic trajectory tracking over a 2D lattice.

Parameters
latticePartition to observe the channel's cleaned position through
windowRetained observation window, forwarded to SymbolicTrajectory

Only valid when T = glm::vec2. A scalar or 3D channel has no meaningful 2D partition to observe; calling this on a channel of a different T is a compile error via the requires clause rather than a silent no-op.

Definition at line 258 of file MotionChannel.hpp.

260 {
261 m_trajectory_2d = std::make_unique<SymbolicTrajectory<Lattice2D, glm::uvec2>>(lattice, window);
262 }
std::unique_ptr< SymbolicTrajectory< Lattice2D, glm::uvec2 > > m_trajectory_2d

References MayaFlux::Kinesis::MotionChannel< T >::m_trajectory_2d.