[][src]Trait imagecli::image_ops::ImageOp

pub trait ImageOp: Debug {
    pub fn apply(&self, stack: &mut ImageStack);
pub fn signature(&self) -> Option<(usize, usize)>; }

An image processing operation that operates on a stack of images.

Required methods

pub fn apply(&self, stack: &mut ImageStack)[src]

Apply this operation to the top of the stack.

pub fn signature(&self) -> Option<(usize, usize)>[src]

Returns the number of stack images consumed by this operation and the number of results produced, if this is known without reference to the stack size.

Operations for which signature returns None cannot be used inside an Array or Map.

Loading content...

Implementors

Loading content...