Struct img::Gray [] [src]

pub struct Gray<BaseTypeP> where
    BaseTypeP: Scalar
{ /* fields omitted */ }

TODO: Struct documentation

Trait Implementations

impl<BaseTypeP: Copy> Copy for Gray<BaseTypeP> where
    BaseTypeP: Scalar
[src]

impl<BaseTypeP: Clone> Clone for Gray<BaseTypeP> where
    BaseTypeP: Scalar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<BaseTypeP: Debug> Debug for Gray<BaseTypeP> where
    BaseTypeP: Scalar
[src]

Formats the value using the given formatter.

impl<BaseTypeP: PartialEq> PartialEq for Gray<BaseTypeP> where
    BaseTypeP: Scalar
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<BaseTypeP> Pixel for Gray<BaseTypeP> where
    BaseTypeP: Scalar
[src]

TODO: Impl documentation

For a given image size, this function calculates the minimum pitch in bytes. Read more

For a given image size, this function calculates the image size in bytes. Read more

Loads a Pixel out of a raw buffer. Read more

Writes a Pixel into a raw buffer. Read more

impl<BaseTypeP> PixelArithmetic for Gray<BaseTypeP> where
    BaseTypeP: Scalar
[src]

TODO: Impl documentation

Add two pixels.

Subtract two pixels.

Multiply two pixels.

Divide two pixels.

Add a pixel and a scalar

Subtract a pixel and a scalar

Multiply a pixel and a scalar

Divide a pixel and a scalar

Add a scalar and a pixel

Subtract a scalar and a pixel

Multiply a scalar and a pixel

Divide a scalar and a pixel