[][src]Trait visionmagic::Processor

pub trait Processor {
    type Input;
    type Output;
    type Params;
    pub fn new() -> Self;
pub fn config(&mut self, params: Self::Params) -> bool;
pub fn input(&mut self, input: Self::Input) -> bool;
pub fn tick(&mut self) -> bool;
pub fn progress(&self) -> u32;
pub fn output(&mut self) -> Self::Output; }

Processor is an element of an image processing pipeline

Associated Types

type Input[src]

Type definition of input

type Output[src]

Type definition of output

type Params[src]

Type definition of parameters

Loading content...

Required methods

pub fn new() -> Self[src]

Create a new Processor instance

pub fn config(&mut self, params: Self::Params) -> bool[src]

Configure parameters; returns true for valid config

pub fn input(&mut self, input: Self::Input) -> bool[src]

Provide input to Processor; returns true for valid input

pub fn tick(&mut self) -> bool[src]

Handover control to Processor to perform one unit of work; returns true when finished

pub fn progress(&self) -> u32[src]

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

pub fn output(&mut self) -> Self::Output[src]

Retrieve output from Processor

Loading content...

Implementors

impl Processor for visionmagic::aggregation::Processor[src]

type Input = Input

type Output = Output

type Params = Params

pub fn output(&mut self) -> Output[src]

to be called once only after process ends

impl Processor for visionmagic::cluster_stat::Processor[src]

type Input = Input

type Output = Output

type Params = Params

impl Processor for visionmagic::clustering::Processor[src]

type Input = Input

type Output = Output

type Params = Params

pub fn config(&mut self, params: Params) -> bool[src]

configure clustering parameters; can be reconfigured on runtime

pub fn output(&mut self) -> Output[src]

to be called once only after process ends

impl Processor for visionmagic::segmentation::Processor[src]

type Input = Input

type Output = Output

type Params = Params

pub fn output(&mut self) -> Output[src]

to be called once only after process ends

impl Processor for visionmagic::simplification::Processor[src]

type Input = Input

type Output = Output

type Params = Params

pub fn config(&mut self, params: Params) -> bool[src]

configure simplification parameters; can be reconfigured on runtime

pub fn output(&mut self) -> Output[src]

buffered output; can be called after each tick or when process ends; each call clears the buffer

Loading content...