Struct dmio::DMImage[][src]

pub struct DMImage { /* fields omitted */ }

Methods

impl DMImage
[src]

Returns the element at given indices by reference.

Panics if the element at given indices does not exist.

Returns the number of image pixels on the x-axis.

Returns the number of image pixels on the y-axis.

Returns the number of image pixels on the z-axis.

Returns true if image has endianess BigEndian.

Returns a reference to the raw data vector of the image.

On error panics.

Returns a mutable reference to the raw data vector of the image.

On error panics.

The use of this function is deprecated, use the DMImage::new() function instead or operate directly on the data of an opened image

Creates a new, empty image.

Opens and reads an existing DMImage given by the path and returns it as Result<DMImage>.

If open fails, an std::io::Error is returned.

Save DMImage to file given by filepath.

Returns the smallest value in the image.

Returns the smallest value in the image.

Returns the image as rgb values in a raw vector Vec<u8>.

Trait Implementations

impl Debug for DMImage
[src]

Formats the value using the given formatter. Read more

impl Default for DMImage
[src]

Returns the "default value" for a type. Read more

impl Index<[usize; 3]> for DMImage
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<[usize; 3]> for DMImage
[src]

Performs the mutable indexing (container[index]) operation.

impl Index<[usize; 2]> for DMImage
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<[usize; 2]> for DMImage
[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl Send for DMImage

impl Sync for DMImage