I wrote the code:
Matrix<MCvPoint3D32f> objectpoints = new Matrix<MCvPoint3D32f>(objectpointsarray);
the compailer don't say anything but when i run it i get "Unsupported matrix depth"
someone know what this means and how to solve it?
"Unsupported matrix depth"
Re: "Unsupported matrix depth"
The supported matrix depth types are listed here:
http://www.emgu.com/wiki/index.php/Work ... h_Matrices
http://www.emgu.com/wiki/index.php/Work ... h_Matrices
Re: "Unsupported matrix depth"
I have a function that demands a matrix with matrix depth of
CV_32FC2 (pair of float) or CV_64FC2 (pair of double)
and two of then not supported.
how can it be?
CV_32FC2 (pair of float) or CV_64FC2 (pair of double)
and two of then not supported.
how can it be?
Re: "Unsupported matrix depth"
Use the constructor
to create multiple channel matrix. In your case, rows is the number of 2D points, cols is 1 and channels is 2. Depth is float for 32F and double for 64f.
Regards,
Canming
Code: Select all
public Matrix(
int rows,
int cols,
int channels
)
Regards,
Canming