MayaFlux 0.5.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 441 of file VisionOp.hpp.

442{
443 for (size_t i = 0; i + 1 < seq.steps.size(); ++i) {
444 if (seq.steps[i].op == VisionOp::ExtractPeaks
445 && seq.steps[i + 1].op == VisionOp::TrackKeypoints)
446 return true;
447 }
448 return false;
449}

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

Referenced by MayaFlux::Kinesis::Vision::VisionExecutor::run().

+ Here is the caller graph for this function: