O'Reilly logo

Emgu CV Essentials by Shin Shi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Definition and parameters

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:

Definition and parameters

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required