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

◆ begin()

template<typename Handle >
void MayaFlux::Kinesis::Vision::VisionPass< Handle >::begin ( const VisionSequence seq,
uint32_t  width,
uint32_t  height 
)
inline

Reset the walk band for a fresh run.

Clears the memo unconditionally: its keys compare image handles, which proxy for content only within one walk. Across runs the caller's input and the contexts' output images are reused in place, so an equal handle does not mean equal pixels.

Retained cross-run state is dropped only when the geometry changes, since surviving between runs is what it is for.

Definition at line 152 of file VisionContext.hpp.

153 {
154 completed.clear();
155
156 if (width != w || height != h)
157 forget();
158
159 sequence = &seq;
160 index = 0;
161 channels = 4;
162 result = VisionResult {};
164 }
uint32_t width
uint32_t height
std::unordered_map< size_t, Completed > completed
void set_geometry(uint32_t width, uint32_t height) noexcept
void forget()
Discard retained cross-run state.

References MayaFlux::Kinesis::Vision::VisionPass< Handle >::channels, MayaFlux::Kinesis::Vision::VisionPass< Handle >::completed, MayaFlux::Kinesis::Vision::VisionPass< Handle >::forget(), MayaFlux::Kinesis::Vision::VisionPass< Handle >::h, height, MayaFlux::Kinesis::Vision::VisionPass< Handle >::index, MayaFlux::Kinesis::Vision::VisionPass< Handle >::result, MayaFlux::Kinesis::Vision::VisionPass< Handle >::sequence, MayaFlux::Kinesis::Vision::VisionPass< Handle >::set_geometry(), MayaFlux::Kinesis::Vision::VisionPass< Handle >::w, and width.

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function: