Trait visionmagic::Processor [−][src]
pub trait Processor { type Input; type Output; type Params; fn new() -> Self; fn config(&mut self, params: Self::Params) -> bool; fn input(&mut self, input: Self::Input) -> bool; fn tick(&mut self) -> bool; fn progress(&self) -> u32; fn output(&mut self) -> Self::Output; }
Expand description
Processor is an element of an image processing pipeline
Associated Types
Required methods
Configure parameters; returns true for valid config
Provide input to Processor; returns true for valid input
Handover control to Processor to perform one unit of work; returns true when finished