[][src]Trait imageproc::integral_image::ArrayData

pub trait ArrayData {
    type DataType;
    fn data(&self) -> Self::DataType;
fn add(lhs: Self::DataType, other: Self::DataType) -> Self::DataType;
fn sub(lhs: Self::DataType, other: Self::DataType) -> Self::DataType; }

Hack to get around lack of const generics. See comment on sum_image_pixels.

Associated Types

type DataType

The type of the data for this array. e.g. [T; 1] for Luma, [T; 3] for Rgb.

Loading content...

Required methods

fn data(&self) -> Self::DataType

Get the data from this pixel as a constant length array.

fn add(lhs: Self::DataType, other: Self::DataType) -> Self::DataType

Add the elements of two data arrays elementwise.

fn sub(lhs: Self::DataType, other: Self::DataType) -> Self::DataType

Subtract the elements of two data arrays elementwise.

Loading content...

Implementations on Foreign Types

impl<T: Primitive + 'static> ArrayData for Luma<T>[src]

type DataType = [T; 1]

impl<T: Primitive + 'static> ArrayData for Rgb<T>[src]

type DataType = [T; 3]

impl<T: Primitive + 'static> ArrayData for Rgba<T>[src]

type DataType = [T; 4]

Loading content...

Implementors

Loading content...