Struct rustml::opencv::Rgb [] [src]

pub struct Rgb {
    pub r: u8,
    pub g: u8,
    pub b: u8,
}

Represents a pixel with a red, green and blue component.

Fields

r

Value for red.

g

Value for green.

b

Value for blue.

Trait Implementations

impl Display for Rgb

Implementation of Display. The format is (red, green, blue).

fn fmt(&self, f: &mut Formatter) -> Result