A matrix is a
two dimensional entity in the Emgu CV library whereas you are trying to cast it to a single entity object. That is the problem #1. Secondly, any object that is used under
Convert.ToType()
function must implement the
IConvertible
interface (thus, the error that was shown to you).
There are two ways that you can do this, first of all being accessing the data from the Matrix itself,
int value = rsmmatrixtanimlayici[0];
Secondly, you may want to use any built-in helper that can do the trick for you, even then you would require to use an integer array (
int[]
not
int
) to accommodate for the data in that matrix.
Then again, that all depends on the depth of the Matrix it can be 3-dimensional too, in the case of a color image for instance.
IConvertible Interface (System)[
^]
c# - Work with matrix in emgu cv - Stack Overflow[
^]