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

◆ track_follows_peaks()

bool MayaFlux::Kinesis::Vision::track_follows_peaks ( const VisionSequence &  seq)
inline

True when an ExtractPeaks step is immediately followed by TrackKeypoints.

Whole-sequence for the same reason: the capture gate at RgbaToGray needs the answer before either step is reached. Ops sitting at the pair itself should use VisionPass::ahead() instead.

Definition at line 730 of file VisionOp.hpp.

731{
732 for (size_t i = 0; i + 1 < seq.steps.size(); ++i) {
733 if (seq.steps[i].op == VisionOp::ExtractPeaks
734 && seq.steps[i + 1].op == VisionOp::TrackKeypoints)
735 return true;
736 }
737 return false;
738}

References ExtractPeaks, MayaFlux::Kinesis::Vision::VisionSequence::steps, and TrackKeypoints.