Enum rustcv::core::CvType [] [src]

#[repr(C)]
pub enum CvType { Cv8UC1, Cv8SC1, Cv16UC1, Cv16SC1, Cv32SC1, Cv32FC1, Cv64FC1, Cv8UC2, Cv8UC3, Cv8SC3, Cv16UC3, Cv16SC3, Cv32SC3, Cv32FC3, Cv64FC3, }

Here is the CvType in an easy-to-read table.

C1 C2 C3 C4 C(5) C(6) C(7) C(8)
CV_8U 0 8 16 24 32 40 48 56
CV_8S 1 9 17 25 33 41 49 57
CV_16U 2 10 18 26 34 42 50 58
CV_16S 3 11 19 27 35 43 51 59
CV_32S 4 12 20 28 36 44 52 60
CV_32F 5 13 21 29 37 45 53 61
CV_64F 6 14 22 30 38 46 54 62

Variants

8 bit unsigned, single channel (grey image)

8 bit signed, single channel (grey image)

16 bit unsigned, single channel (grey image)

16 bit signed, single channel (grey image)

32 bit signed, single channel (grey image)

32 bit float, single channel (grey image)

32 bit float, single channel (grey image)

8 bit, two channel (rarelly seen)

8 bit unsigned, three channels (RGB image)

8 bit signed, three channels (RGB image)

16 bit unsigned, three channels (RGB image)

16 bit signed, three channels (RGB image)

32 bit signed, three channels (RGB image)

32 bit float, three channels (RGB image)

32 bit float, three channels (RGB image)

Trait Implementations

impl Debug for CvType
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for CvType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CvType
[src]

impl Eq for CvType
[src]

impl PartialEq for CvType
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Hash for CvType
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more