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

◆ set_edge_detection()

void MayaFlux::Nodes::Generator::Logic::set_edge_detection ( EdgeType  type,
double  threshold = 0.5 
)

Configures digital transition detection.

Parameters
typeType of transition to detect (rising, falling, or both)
thresholdDecision boundary for state changes

Sets up the node to detect specific types of state transitions (edges) in the input signal. Useful for event detection, trigger generation, and synchronization with external events.

Definition at line 342 of file Logic.cpp.

343{
344 m_edge_type = type;
345 m_threshold = threshold;
347}
EdgeType m_edge_type
Type of edge to detect.
Definition Logic.hpp:571
double m_threshold
Threshold for boolean conversion.
Definition Logic.hpp:568
LogicOperator m_operator
Current logic operator.
Definition Logic.hpp:560
@ EDGE
Transition detector - identifies state changes.

References MayaFlux::Nodes::Generator::EDGE, m_edge_type, m_operator, and m_threshold.