MayaFlux 1.0.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 282 of file VisionContext.hpp.

283 {
284 completed.clear();
285
286 if (width != w || height != h)
287 forget();
288
289 sequence = &seq;
290 index = 0;
291 channels = 4;
292 result = VisionResult {};
294 }
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: