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

◆ get_executor()

VisionGpuExecutor * MayaFlux::Yantra::VisionAnalyzer::get_executor ( ) const

The executor that ran the FindElements sequence, or the first executor when the query has none.

Each sequence of a query runs on its own executor, so the images one sequence leaves in its VisionResult are not overwritten by the next. VisionExtractor::mask() needs the executor holding the label buffer that VisionAnalysis::find_elements indexes into, which is this one.

Valid after at least one analyze_vision() call; null before that.

Definition at line 84 of file VisionAnalyzer.cpp.

85{
87 return m_executors[m_label_lane].get();
88 return m_executors.empty() ? nullptr : m_executors.front().get();
89}
std::vector< std::unique_ptr< VisionGpuExecutor > > m_executors

References m_executors, and m_label_lane.