How can I reshape matrix 1xn to matrix sqrt(n)xsqrt(n) ?
I have matrix 1x16. I will reshape this matrix to 4x4. How can I reshape this matrix? I just use this code, but the program was break.
//transpose
Mat det0 = Mat(d1);
Mat dt1;
dt1 = det0.reshape(0,4);
cout << " Sebelum transpose "<<det0 <<endl;
cout << "coba" << dt1 <<endl;
`