[−][src]Trait visionmagic::Processor
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
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
Implementors
impl Processor for visionmagic::aggregation::Processor
[src]
type Input = Input
type Output = Output
type Params = Params
pub fn new() -> Self
[src]
pub fn config(&mut self, params: Params) -> bool
[src]
pub fn input(&mut self, input: Input) -> bool
[src]
pub fn tick(&mut self) -> bool
[src]
pub fn progress(&self) -> u32
[src]
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
pub fn new() -> Self
[src]
pub fn config(&mut self, params: Params) -> bool
[src]
pub fn input(&mut self, input: Input) -> bool
[src]
pub fn tick(&mut self) -> bool
[src]
pub fn progress(&self) -> u32
[src]
pub fn output(&mut self) -> Output
[src]
impl Processor for visionmagic::clustering::Processor
[src]
type Input = Input
type Output = Output
type Params = Params
pub fn new() -> Self
[src]
pub fn config(&mut self, params: Params) -> bool
[src]
configure clustering parameters; can be reconfigured on runtime
pub fn input(&mut self, input: Input) -> bool
[src]
pub fn tick(&mut self) -> bool
[src]
pub fn progress(&self) -> u32
[src]
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 new() -> Self
[src]
pub fn config(&mut self, params: Params) -> bool
[src]
pub fn input(&mut self, input: Input) -> bool
[src]
pub fn tick(&mut self) -> bool
[src]
pub fn progress(&self) -> u32
[src]
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 new() -> Self
[src]
pub fn config(&mut self, params: Params) -> bool
[src]
configure simplification parameters; can be reconfigured on runtime
pub fn input(&mut self, input: Input) -> bool
[src]
pub fn tick(&mut self) -> bool
[src]
pub fn progress(&self) -> u32
[src]
pub fn output(&mut self) -> Output
[src]
buffered output; can be called after each tick or when process ends; each call clears the buffer