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

Type definition of input

Type definition of output

Type definition of parameters

Required methods

Create a new Processor instance

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

Check progress; returns an integer from 0 to 100 (inclusive)

Retrieve output from Processor

Implementors