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

◆ ahead()

template<typename Handle >
const VisionStep * MayaFlux::Kinesis::Vision::VisionPass< Handle >::ahead ( size_t  offset = 1) const
inlinenoexcept

Op at offset steps ahead, or nullptr past the end.

Replaces the adjacency booleans derived by VisionSequence::Builder. Correct under any mutation of steps because it is evaluated at the point of use.

Definition at line 323 of file VisionContext.hpp.

324 {
325 const auto& steps = sequence->steps;
326 const size_t at = index + offset;
327 return at < steps.size() ? &steps[at] : nullptr;
328 }
uint64_t offset
Definition Composite.cpp:10
auto at(const B &anchor, F &&factory, Args &&... args) -> decltype(std::forward< F >(factory)(Kinesis::bounds_of(anchor), std::forward< Args >(args)...))
Call a bounds-taking factory with an anchor's region.
Definition Geometry.hpp:152

References MayaFlux::Kinesis::Vision::VisionPass< Handle >::index, offset, MayaFlux::Kinesis::Vision::VisionPass< Handle >::sequence, and MayaFlux::Kinesis::Vision::VisionSequence::steps.

Referenced by MayaFlux::Yantra::VisionGpuExecutor::op_connected_components(), MayaFlux::Yantra::VisionGpuExecutor::op_extract_peaks(), and MayaFlux::Kinesis::Vision::VisionExecutor::run().

+ Here is the caller graph for this function: