As a rectangular array, a matrix is defined by its size and depth. For instance, there is a real matrix A with 3 rows and 2 columns as in the following figure:

We can call the numbers in the matrix elements. The elements of a matrix can be integers, floating point literals, and so on. There is a generic parameter called `TDepth`

, which defines the element type. We list all the values of the depth that Emgu CV supports as follows, and they are almost the same as the `Image`

class we introduced in the previous chapter:

TDepth |
Value |
---|---|

Byte |
8 bits for each element (0 - 255) |

SByte |
8 bits for each element (-128 - 127) |

Single |

Start Free Trial

No credit card required